In testmode, ok to not send an email.

This commit is contained in:
spjspj 2017-02-11 01:26:52 +11:00
parent dfbdc058cf
commit 4f13d89849

View file

@ -115,6 +115,10 @@ public class Session {
String ok = "Sent a registration confirmation / initial password email to " + email + " for " + userName; String ok = "Sent a registration confirmation / initial password email to " + email + " for " + userName;
logger.info(ok); logger.info(ok);
sendInfoMessageToClient(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 { } else {
String err = "Failed sending a registration confirmation / initial password email to " + email + " for " + userName; String err = "Failed sending a registration confirmation / initial password email to " + email + " for " + userName;
logger.error(err); logger.error(err);