From 240d548c90c9b53dc1db4fd39789b457e0a69702 Mon Sep 17 00:00:00 2001 From: Me Car Date: Mon, 25 Jan 2016 21:27:57 +0900 Subject: [PATCH] Suggest user registration on login failures. --- Mage.Server/src/main/java/mage/server/Session.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Server/src/main/java/mage/server/Session.java b/Mage.Server/src/main/java/mage/server/Session.java index 88dccf4912..602281c4e8 100644 --- a/Mage.Server/src/main/java/mage/server/Session.java +++ b/Mage.Server/src/main/java/mage/server/Session.java @@ -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."; } }