Commit bae1b25e by Nilu

S12429638 # Internal Issues (raised by QA) #2. Login has not been disabled for the disabled user.

parent 89876509
...@@ -31,7 +31,11 @@ public class UserLoginFP extends LoginProcessor ...@@ -31,7 +31,11 @@ public class UserLoginFP extends LoginProcessor
{ {
throw new FieldException("You're not an authorised user to access this portal.", SecUser.FIELD_UserName); throw new FieldException("You're not an authorised user to access this portal.", SecUser.FIELD_UserName);
} }
else if(companyUser.getIsEmailChanged()==Boolean.TRUE) else if(companyUser.isTrue(companyUser.getIsDisabled()))
{
throw new FieldException("Your account is disabled.", SecUser.FIELD_UserName);
}
else if(companyUser.isTrue(companyUser.getIsEmailChanged()))
{ {
//verify email address change //verify email address change
companyUser.changeEmail(submission.getRequest()); companyUser.changeEmail(submission.getRequest());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment