mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
Cover SecurityCheckProvider.SecurityCheckInjectable.cookieLogin with tests
This commit is contained in:
@@ -54,7 +54,7 @@ public class UserService {
|
||||
boolean authenticated = encryptionService.authenticate(password, user.getPassword(), user.getSalt());
|
||||
if (authenticated) {
|
||||
afterLogin(user);
|
||||
return Optional.fromNullable(user);
|
||||
return Optional.of(user);
|
||||
}
|
||||
}
|
||||
return Optional.absent();
|
||||
|
||||
Reference in New Issue
Block a user