def on_email_validation_error(self, app_name, error):
     """Signal thrown when there's a problem validating the email."""
     logger.error('Got error on email validation %s, error: %s',
         app_name, error)
     self.hide_overlay()
     msg = error.pop(ERROR_EMAIL_TOKEN, '')
     msg += build_general_error_message(error)
     self.show_error(msg)
 def on_email_validation_error(self, app_name, error):
     """Signal thrown when there's a problem validating the email."""
     logger.error('Got error on email validation %s, error: %s', app_name,
                  error)
     self.hide_overlay()
     msg = error.pop(ERROR_EMAIL_TOKEN, '')
     msg += build_general_error_message(error)
     self.show_error(msg)
 def on_user_registration_error(self, app_name, error):
     """Let the user know we could not register."""
     # errors are returned as a dict with the data we want to show.
     msg = error.pop(ERROR_EMAIL, '')
     if msg:
         self.set_error_message(self.ui.email_assistance, msg)
     error_msg = build_general_error_message(error)
     if error_msg:
         self.show_error(error_msg)
     self._refresh_captcha()
 def on_user_registration_error(self, app_name, error):
     """Let the user know we could not register."""
     # errors are returned as a dict with the data we want to show.
     msg = error.pop(ERROR_EMAIL, "")
     if msg:
         self.set_error_message(self.ui.email_assistance, msg)
     error_msg = build_general_error_message(error)
     if error_msg:
         self.show_error(error_msg)
     self._refresh_captcha()
 def on_login_error(self, app_name, error):
     """There was an error when login in."""
     # let the user know
     logger.error('Got error when login %s, error: %s',
         self.app_name, error)
     self.show_error(build_general_error_message(error))
 def on_password_change_error(self, app_name, error):
     """Let the user know that there was an error."""
     logger.error('Got error changing password for %s, error: %s',
                  self.app_name, error)
     self.show_error(build_general_error_message(error))
Example #7
0
 def on_password_change_error(self, app_name, error):
     """Let the user know that there was an error."""
     logger.error('Got error changing password for %s, error: %s',
                  self.app_name, error)
     self.show_error(build_general_error_message(error))
 def on_login_error(self, app_name, error):
     """There was an error when login in."""
     # let the user know
     logger.error('Got error when login %s, error: %s', self.app_name,
                  error)
     self.show_error(build_general_error_message(error))