diff src/browser/sat_browser/register.py @ 961:22fe06569b1a

server: moved logging worflow in separated method, so it can be used by Libervia Pages
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 18:35:23 +0200
parents 0d719b6a4115
children fd4eae654182
line wrap: on
line diff
--- a/src/browser/sat_browser/register.py	Fri Oct 27 18:31:42 2017 +0200
+++ b/src/browser/sat_browser/register.py	Fri Oct 27 18:35:23 2017 +0200
@@ -210,7 +210,7 @@
         elif result == C.XMPP_AUTH_ERROR:
             # TODO: call stdui action CHANGE_XMPP_PASSWD_ID as it's done in primitivus
             Window.alert(_(u'Your XMPP account failed to connect. Did you enter the good password? If you have changed your XMPP password since your last connection on Libervia, please use another SàT frontend to update your profile.'))
-        elif result == C.PROFILE_LOGGED_REGISTERED_WITH_EXT_JID:
+        elif result == C.PROFILE_LOGGED_EXT_JID:
             self.callback()
             Window.alert(_('A profile has been created on this Libervia service using your existing XMPP account. Since you are not using our XMPP server, we can not guaranty that all the extra features (blog, directory...) will fully work.'))
         elif result == C.PROFILE_LOGGED: