comparison src/browser/sat_browser/register.py @ 888:0d719b6a4115

browser (register): update message when XMPP connection failed
author souliane <souliane@mailoo.org>
date Fri, 11 Mar 2016 12:21:55 +0100
parents 54f6c5b86a87
children 22fe06569b1a
comparison
equal deleted inserted replaced
887:dd2273617eb7 888:0d719b6a4115
207 result = event.getResults() 207 result = event.getResults()
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 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_REGISTERED_WITH_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()