Skip to content

Commit 45cffd5

Browse files
ces-quanhuynhbrianchandotcom
authored andcommitted
LPS-164371 Fix lockout issue
1 parent c1860dc commit 45cffd5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

portal-impl/src/com/liferay/portal/security/auth/session/AuthenticatedSessionManagerImpl.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -463,21 +463,11 @@ else if (authType.equals(CompanyConstants.AUTH_TYPE_ID)) {
463463
headerMap, parameterMap, resultsMap);
464464
}
465465

466-
User user = (User)resultsMap.get("user");
467-
468466
if (authResult != Authenticator.SUCCESS) {
469-
if (user != null) {
470-
user = UserLocalServiceUtil.fetchUser(user.getUserId());
471-
}
472-
473-
if (user != null) {
474-
UserLocalServiceUtil.checkLockout(user);
475-
}
476-
477467
throw new AuthException();
478468
}
479469

480-
return user;
470+
return (User)resultsMap.get("user");
481471
}
482472

483473
private static final Log _log = LogFactoryUtil.getLog(

0 commit comments

Comments
 (0)