mirror of
https://github.com/correl/mage.git
synced 2024-11-24 19:19:56 +00:00
In testmode, ok to not send an email.
This commit is contained in:
parent
dfbdc058cf
commit
4f13d89849
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue