Suggest user registration on login failures.

This commit is contained in:
Me Car 2016-01-25 21:27:57 +09:00
parent a2a605550a
commit 240d548c90

View file

@ -183,7 +183,7 @@ public class Session {
if (ConfigSettings.getInstance().isAuthenticationActivated()) {
AuthorizedUser authorizedUser = AuthorizedUserRepository.instance.getByName(userName);
if (authorizedUser == null || !authorizedUser.doCredentialsMatch(userName, password)) {
return "Wrong username or password";
return "Wrong username or password. In case you haven't, please register your account first.";
}
}