comparison browser/sat_browser/register.py @ 1164:ef3adc3f2078

handle invalid certificate on registration + fixed error handling on registration
author Goffi <goffi@goffi.org>
date Sun, 03 Mar 2019 17:14:27 +0100
parents 2af117bfe6cc
children
comparison
equal deleted inserted replaced
1163:cd6dd7f66551 1164:ef3adc3f2078
219 Window.alert(_('Session already active, this should not happen, please contact the author to fix it.')) 219 Window.alert(_('Session already active, this should not happen, please contact the author to fix it.'))
220 elif result == C.NO_REPLY: 220 elif result == C.NO_REPLY:
221 Window.alert(_("Did not receive a reply (the timeout expired or the connection is broken).")) 221 Window.alert(_("Did not receive a reply (the timeout expired or the connection is broken)."))
222 elif result == C.ALREADY_EXISTS: 222 elif result == C.ALREADY_EXISTS:
223 self.register_warning_msg.setHTML(_('This login already exists,<br>please choose another one.')) 223 self.register_warning_msg.setHTML(_('This login already exists,<br>please choose another one.'))
224 elif result == C.INVALID_CERTIFICATE:
225 self.register_warning_msg.setHTML(_('The certificate of the server is invalid,<br>please contact your server administrator.'))
224 elif result == C.INTERNAL_ERROR: 226 elif result == C.INTERNAL_ERROR:
225 self.register_warning_msg.setHTML(_('An registration error occurred, please contact the server administrator.')) 227 self.register_warning_msg.setHTML(_('An registration error occurred, please contact the server administrator.'))
226 elif result == C.REGISTRATION_SUCCEED: 228 elif result == C.REGISTRATION_SUCCEED:
227 self.login_warning_msg.setHTML("") 229 self.login_warning_msg.setHTML("")
228 self.register_warning_msg.setHTML("") 230 self.register_warning_msg.setHTML("")