mirror of
https://github.com/correl/mage.git
synced 2024-12-29 11:09:17 +00:00
Suggest user registration on login failures.
This commit is contained in:
parent
a2a605550a
commit
240d548c90
1 changed files with 1 additions and 1 deletions
|
@ -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.";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue