jklm initial implementation

This commit is contained in:
Athou
2013-05-24 09:21:20 +02:00
parent 89ffd89a31
commit 4ba0ed4bf7
3 changed files with 31 additions and 9 deletions

View File

@@ -46,8 +46,9 @@ public class UserService {
PasswordEncryptionService encryptionService;
public User login(String name, String password) {
Preconditions.checkNotNull(name);
Preconditions.checkNotNull(password);
if (name == null || password == null) {
return null;
}
User user = userDAO.findByName(name);
if (user != null && !user.isDisabled()) {