Commit 5fd77e44 by Juho Juopperi

Merge branch 'master' of dev.intra.insomnia.fi:/data/bortal

2 parents 35d72c82 1b4f025e
...@@ -91,7 +91,13 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal { ...@@ -91,7 +91,13 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
} }
public User tryLogin(String username, String password) { public User tryLogin(String username, String password) {
throw new UnsupportedOperationException("Not supported yet."); User user = userfacade.findByLogin(username.trim());
if(User.hashPassword(password).equals(user.getPassword())) {
return user;
}
return null;
} }
public User getDefaultUser() { public User getDefaultUser() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!