I think you would need to do programmatic login so that you can catch the
individual exceptions that may be thrown.
public void login() {
try {
AuthenticationToken at = (new UsernamePasswordToken(username,
password, false));
subject.login(at);
} catch (UnknownAccountException | IncorrectCredentialsException |
LockedAccountException ex) {
// do something here
} catch (AuthenticationException ex) {
// do something else here
} catch (IOException | DuplicateEntityException ex) {
LOG.log(Level.SEVERE, null, ex);
}
}
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Customizing-error-messages-for-FormAuthenticator-tp7580716p7580725.html
Sent from the Shiro User mailing list archive at Nabble.com.