timeout message
This commit is contained in:
parent
1aa338fe3e
commit
f5b4a0788e
3 changed files with 4 additions and 4 deletions
|
@ -399,7 +399,7 @@ public class AuthenticationProcessor {
|
|||
|
||||
} else if (e.getError() == Error.EXPIRED_CODE) {
|
||||
event.error(Errors.EXPIRED_CODE);
|
||||
return ErrorPage.error(session, Messages.INVALID_CODE);
|
||||
return ErrorPage.error(session, Messages.EXPIRED_CODE);
|
||||
|
||||
}else {
|
||||
event.error(Errors.INVALID_USER_CREDENTIALS);
|
||||
|
|
|
@ -172,7 +172,7 @@ public class LoginActionsService {
|
|||
} else if (!clientCode.isActionActive(requiredAction)) {
|
||||
event.client(clientCode.getClientSession().getClient());
|
||||
event.error(Errors.EXPIRED_CODE);
|
||||
response = ErrorPage.error(session, Messages.INVALID_CODE);
|
||||
response = ErrorPage.error(session, Messages.EXPIRED_CODE);
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
@ -190,7 +190,7 @@ public class LoginActionsService {
|
|||
} else if (!(clientCode.isActionActive(requiredAction) || clientCode.isActionActive(alternativeRequiredAction))) {
|
||||
event.client(clientCode.getClientSession().getClient());
|
||||
event.error(Errors.EXPIRED_CODE);
|
||||
response = ErrorPage.error(session, Messages.INVALID_CODE);
|
||||
response = ErrorPage.error(session, Messages.EXPIRED_CODE);
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
|
@ -370,7 +370,7 @@ public class ResetPasswordTest {
|
|||
|
||||
errorPage.assertCurrent();
|
||||
|
||||
assertEquals("An error occurred, please login again through your application.", errorPage.getError());
|
||||
assertEquals("Login timeout. Please login again.", errorPage.getError());
|
||||
|
||||
events.expectRequiredAction(EventType.RESET_PASSWORD).error("expired_code").client("test-app").user((String) null).session((String) null).clearDetails().assertEvent();
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue