Merge pull request #171 from Athou/jklm

Use jkeylockmanager for entry update locking
This commit is contained in:
Athou
2013-05-24 03:04:03 -07:00
4 changed files with 31 additions and 78 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()) {