Send an email on successful user registration. Use Gmail API for that. Add password confirmation and email to RegisterUserDialog.

This commit is contained in:
Me Car 2016-01-10 18:08:08 +09:00
parent 46f60cd857
commit a0ddd4fff0
11 changed files with 328 additions and 70 deletions

View file

@ -195,7 +195,7 @@ public class SessionImpl implements Session {
public boolean run() throws Throwable {
logger.info("Trying to register as " + getUserName() + " to XMAGE server at " + connection.getHost() + ":" + connection.getPort());
boolean registerResult = server.registerUser(sessionId, connection.getUsername(),
connection.getPassword(), "");
connection.getPassword(), connection.getEmail());
if (registerResult) {
logger.info("Registered as " + getUserName() + " to MAGE server at " + connection.getHost() + ":" + connection.getPort());
}