mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
jklm initial implementation
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user