def register(self, username, password, email): error = userdb.register_user(username, password, email) if error is None: self.logger.info("Registered user %s.", username) self.do_login(username) else: self.logger.info("Registration attempt failed for username %s: %s", username, error) self.send_message("register_fail", reason=error)
def register(self, username, password, email): error = userdb.register_user(username, password, email) if error is None: self.logger.info("[Account] Registered user %s (IP: %s, email: %s).", username, self.request.remote_ip, email) self.do_login(username) else: self.logger.info("[Account] Registration attempt failed for user %s (IP: %s): %s", username, self.request.remote_ip, error) self.send_message("register_fail", reason = error)