Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
set_password_api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alina Habibulina
set_password_api
Commits
eda567b5
Commit
eda567b5
authored
Jun 22, 2018
by
Alina Habibulina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 10
parent
a05fb38a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/kz/arta/ext/sap/db/UserManager.java
src/main/java/kz/arta/ext/sap/db/UserManager.java
+2
-2
No files found.
src/main/java/kz/arta/ext/sap/db/UserManager.java
View file @
eda567b5
...
...
@@ -83,11 +83,11 @@ public class UserManager {
if
(
requestType
.
equals
(
AUTH
))
{
ps
=
con
.
prepareStatement
(
"SELECT
*
FROM users WHERE login = ? AND password = md5( ? )"
);
ps
=
con
.
prepareStatement
(
"SELECT
isadmin
FROM users WHERE login = ? AND password = md5( ? )"
);
ps
.
setString
(
2
,
value
);
}
else
if
(
requestType
.
equals
(
EXIST
)){
ps
=
con
.
prepareStatement
(
"SELECT
*
FROM users WHERE login = ?"
);
ps
=
con
.
prepareStatement
(
"SELECT
isadmin
FROM users WHERE login = ?"
);
ps
.
setString
(
1
,
login
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment