comparison src/browser/sat_browser/register.py @ 796:fad9c9f82ae3

browser and server sides: alert the user after he created a new profile using his XMPP account credentials
author souliane <souliane@mailoo.org>
date Tue, 08 Dec 2015 18:11:19 +0100
parents a6b39838353f
children 3c5b17a3d86e
comparison
equal deleted inserted replaced
795:a6b39838353f 796:fad9c9f82ae3
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 SàT profile has been authenticated but the associated XMPP account failed to connect. Please use another SàT frontend to set another XMPP password.')) 212 Window.alert(_(u'Your SàT profile has been authenticated but the associated XMPP account failed to connect. Please use another SàT frontend to set another XMPP password.'))
213 elif result == C.PROFILE_LOGGED_REGISTERED_WITH_EXT_JID:
214 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 self.callback()
213 elif result == C.PROFILE_LOGGED: 216 elif result == C.PROFILE_LOGGED:
214 self.callback() 217 self.callback()
215 elif result == C.SESSION_ACTIVE: 218 elif result == C.SESSION_ACTIVE:
216 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.'))
217 elif result == C.NO_REPLY: 220 elif result == C.NO_REPLY: