def _onLoginRejected(self, loginStatus, responseData): socialList = g_loginManager.getAvailableSocialNetworks() if self.__lastLoginType in socialList and loginStatus == LOGIN_STATUS.LOGIN_REJECTED_INVALID_PASSWORD: Waiting.hide('login') g_loginManager.clearToken2Preference() self._showForm() self.as_setErrorMessageS(_ms('#menu:login/status/SOCIAL_SESSION_END'), INVALID_FIELDS.PWD_INVALID) self._dropLoginQueue(loginStatus) else: super(SocialLoginView, self)._onLoginRejected(loginStatus, responseData)
def py_setLoginDataById(self, id, form): for account in BigWorld.wh_data.accounts: if str(account['id']) != id: continue form.login.text = BigWorld.wg_ucpdata(account['email']) getattr(form, 'pass').text = BigWorld.wg_ucpdata(account['password']) form.server.selectedIndex = int(account['cluster']) form.submit.enabled = True g_loginManager.clearToken2Preference() self.destroy()
def _onLoginRejected(self, loginStatus, responseData): socialList = g_loginManager.getAvailableSocialNetworks() if self.__lastLoginType in socialList and ( loginStatus == LOGIN_STATUS.SESSION_END or loginStatus == LOGIN_STATUS.LOGIN_REJECTED_INVALID_PASSWORD): Waiting.hide('login') g_loginManager.clearToken2Preference() self._showForm() self.as_setErrorMessageS( _ms('#menu:login/status/SOCIAL_SESSION_END'), INVALID_FIELDS.PWD_INVALID) self._dropLoginQueue(loginStatus) else: super(SocialLoginView, self)._onLoginRejected(loginStatus, responseData)
def resetToken(self): g_loginManager.clearToken2Preference()