comparison 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
comparison
equal deleted inserted replaced
960:e59edcae4c18 961:22fe06569b1a
208 if result == C.PROFILE_AUTH_ERROR: 208 if result == C.PROFILE_AUTH_ERROR:
209 self.login_warning_msg.setHTML(_('Your login and/or password is incorrect. Please try again.')) 209 self.login_warning_msg.setHTML(_('Your login and/or password is incorrect. Please try again.'))
210 elif result == C.XMPP_AUTH_ERROR: 210 elif result == C.XMPP_AUTH_ERROR:
211 # TODO: call stdui action CHANGE_XMPP_PASSWD_ID as it's done in primitivus 211 # TODO: call stdui action CHANGE_XMPP_PASSWD_ID as it's done in primitivus
212 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.')) 212 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.'))
213 elif result == C.PROFILE_LOGGED_REGISTERED_WITH_EXT_JID: 213 elif result == C.PROFILE_LOGGED_EXT_JID:
214 self.callback() 214 self.callback()
215 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.')) 215 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.'))
216 elif result == C.PROFILE_LOGGED: 216 elif result == C.PROFILE_LOGGED:
217 self.callback() 217 self.callback()
218 elif result == C.SESSION_ACTIVE: 218 elif result == C.SESSION_ACTIVE: