From 4f13d8984980a178f46a6f3f981c117bef65de88 Mon Sep 17 00:00:00 2001 From: spjspj Date: Sat, 11 Feb 2017 01:26:52 +1100 Subject: [PATCH] In testmode, ok to not send an email. --- Mage.Server/src/main/java/mage/server/Session.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mage.Server/src/main/java/mage/server/Session.java b/Mage.Server/src/main/java/mage/server/Session.java index e4c4e7d3c1..f4ebc131c2 100644 --- a/Mage.Server/src/main/java/mage/server/Session.java +++ b/Mage.Server/src/main/java/mage/server/Session.java @@ -115,6 +115,10 @@ public class Session { String ok = "Sent a registration confirmation / initial password email to " + email + " for " + userName; logger.info(ok); sendInfoMessageToClient(ok); + } else if (Main.isTestMode()) { + String ok = "Server is in test mode. Your account is registered with a password of " + password + " for " + userName; + logger.info(ok); + sendInfoMessageToClient(ok); } else { String err = "Failed sending a registration confirmation / initial password email to " + email + " for " + userName; logger.error(err);