diff 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
line wrap: on
line diff
--- a/browser/sat_browser/register.py	Sat Mar 02 18:44:20 2019 +0100
+++ b/browser/sat_browser/register.py	Sun Mar 03 17:14:27 2019 +0100
@@ -221,6 +221,8 @@
             Window.alert(_("Did not receive a reply (the timeout expired or the connection is broken)."))
         elif result == C.ALREADY_EXISTS:
             self.register_warning_msg.setHTML(_('This login already exists,<br>please choose another one.'))
+        elif result == C.INVALID_CERTIFICATE:
+            self.register_warning_msg.setHTML(_('The certificate of the server is invalid,<br>please contact your server administrator.'))
         elif result == C.INTERNAL_ERROR:
             self.register_warning_msg.setHTML(_('An registration error occurred, please contact the server administrator.'))
         elif result == C.REGISTRATION_SUCCEED: