Commit eda567b5 authored by Alina Habibulina's avatar Alina Habibulina

fix 10

parent a05fb38a
...@@ -83,11 +83,11 @@ public class UserManager { ...@@ -83,11 +83,11 @@ public class UserManager {
if(requestType.equals(AUTH)) { 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); ps.setString(2, value);
} else if(requestType.equals(EXIST)){ } 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); ps.setString(1, login);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment