def handleInvalidPassword(self, status, message): errorMessage = i18n.makeString(MENU.login_status(status)) errCode = self.LOGIN_PWD_INVALID if len(self.__loginDataLoader.token2): self.resetToken() self.onHandleInvalidPasswordWithToken(self.__loginDataLoader.user, self.__loginDataLoader.rememberPwd) errorMessage = i18n.makeString(MENU.LOGIN_STATUS_SESSION_END) errCode = self.ALL_VALID self.onSetStatus(errorMessage, errCode)
def handleInvalidPassword(self, status, message): errorMessage = i18n.makeString(MENU.login_status(status)) errCode = self.LOGIN_PWD_INVALID if len(self.__loginDataLoader.token2): self.resetToken() self.onHandleInvalidPasswordWithToken( self.__loginDataLoader.user, self.__loginDataLoader.rememberPwd) errorMessage = i18n.makeString(MENU.LOGIN_STATUS_SESSION_END) errCode = self.ALL_VALID self.onSetStatus(errorMessage, errCode)
def handleAutoLoginQueryFailed(self, status): result = False if AUTO_LOGIN_QUERY_URL == self.__loginDataLoader.host: result = True message = i18n.makeString(WAITING.MESSAGE_AUTO_LOGIN_QUERY_FAILED, server=connectionManager.serverUserName, reason=i18n.makeString( MENU.login_status(status))) self.onHandleAutoLoginQueryFailed(message) self.__setAutoLoginTimer(AUTO_LOGIN_QUERY_TIMEOUT) return result
def handleAutoLoginQueryFailed(self, status): result = False if AUTO_LOGIN_QUERY_URL == self.__loginDataLoader.host: result = True message = i18n.makeString( WAITING.MESSAGE_AUTO_LOGIN_QUERY_FAILED, server=connectionManager.serverUserName, reason=i18n.makeString(MENU.login_status(status)), ) self.onHandleAutoLoginQueryFailed(message) self.__setAutoLoginTimer(AUTO_LOGIN_QUERY_TIMEOUT) return result
def handleInvalidPassword(self, status, message): errorMessage = i18n.makeString(MENU.login_status(status)) errCode = self.LOGIN_PWD_INVALID if len(self.__loginDataLoader.token2): self.resetToken() self.onHandleInvalidPasswordWithToken(self.__loginDataLoader.user, self.__loginDataLoader.rememberPwd) lastLoginType = Settings.g_instance.userPrefs[Settings.KEY_LOGIN_INFO].readString('lastLoginType', 'basic') if lastLoginType != 'basic': errorMessage = i18n.makeString('#menu:login/status/SOCIAL_SESSION_END') else: errorMessage = i18n.makeString(MENU.LOGIN_STATUS_SESSION_END) errCode = self.ALL_VALID self.onSetStatus(errorMessage, errCode)
def handleInvalidPassword(self, status, message): errorMessage = i18n.makeString(MENU.login_status(status)) errCode = self.LOGIN_PWD_INVALID if len(self.__loginDataLoader.token2): self.resetToken() self.onHandleInvalidPasswordWithToken( self.__loginDataLoader.user, self.__loginDataLoader.rememberPwd) lastLoginType = Settings.g_instance.userPrefs[ Settings.KEY_LOGIN_INFO].readString('lastLoginType', 'basic') if lastLoginType != 'basic': errorMessage = i18n.makeString( '#menu:login/status/SOCIAL_SESSION_END') else: errorMessage = i18n.makeString(MENU.LOGIN_STATUS_SESSION_END) errCode = self.ALL_VALID self.onSetStatus(errorMessage, errCode)
def handleLogOnFailed(self, status, _): self.onSetStatus(i18n.makeString(MENU.login_status(status)), self.ALL_VALID)