mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-15 16:51:07 +00:00
whitespace changes only
This commit is contained in:
1 parent
bd03ab9137
commit
73f7ce197f
3 files changed
+3
-3
No files matched your search
-1
@@ -16,5 +16,4 @@ public class SailingPermissionsForRoleProvider implements PermissionsForRoleProv
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
+2
-1
@@ -108,7 +108,8 @@ public class UserManagementServiceImpl extends RemoteServiceServlet implements U
|
||||
public SuccessInfo login(String username, String password) {
|
||||
try {
|
||||
String redirectURL = getSecurityService().login(username, password);
|
||||
return new SuccessInfo(true, "Success. Redirecting to "+redirectURL, redirectURL, createUserDTOFromUser(getSecurityService().getUserByName(username)));
|
||||
return new SuccessInfo(true, "Success. Redirecting to "+redirectURL, redirectURL,
|
||||
createUserDTOFromUser(getSecurityService().getUserByName(username)));
|
||||
} catch (UserManagementException | AuthenticationException e) {
|
||||
return new SuccessInfo(false, SuccessInfo.FAILED_TO_LOGIN, /* redirectURL */ null, null);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ public class UsernamePasswordRealm extends AbstractUserStoreBasedRealm {
|
||||
String saltedPassword = null;
|
||||
byte[] salt = null;
|
||||
User user = getUserStore().getUserByName(username);
|
||||
if (user == null){
|
||||
if (user == null) {
|
||||
return null;
|
||||
}
|
||||
UsernamePasswordAccount upa = (UsernamePasswordAccount) user.getAccount(AccountType.USERNAME_PASSWORD);
|
||||
|
||||
Reference in new issue
Block a user