Commit 2126e11a by Tuukka Kivilahti

fixed last fix

1 parent 9aafbb55
......@@ -97,7 +97,7 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
public User tryLogin(String username, String password) {
User user = userfacade.findByLogin(username.trim());
if(/*User.hashPassword(password).equals(user.getPassword())*/ true) {
if(user != null && user.checkPassword(password)) {
return user;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!