コード例 #1
0
ファイル: __init__.py プロジェクト: nvdnkpr/LinOTP
 def storeToken(self):
     log.debug('storeToken()')
     Session.add(self)
     Session.flush()
     Session.commit()
     log.debug('store token success')
     return True
コード例 #2
0
ファイル: __init__.py プロジェクト: tdautc19841202/LinOTP
    def save(self):
        log.debug('save ocra challenge')

        Session.add(self)
        Session.flush()

        log.debug('save ocra challenge : success')
        return self.transid
コード例 #3
0
    def storeRealm(self):
        if self.name is None:
            self.name = ''
        self.name = self.name.lower()

        Session.add(self)
        Session.flush()

        return True
コード例 #4
0
    def storeRealm(self):
        if self.name is None:
            self.name = ''
        self.name = self.name.lower()

        Session.add(self)
        Session.flush()

        return True
コード例 #5
0
ファイル: __init__.py プロジェクト: tdautc19841202/LinOTP
    def storeRealm(self):
        if self.name is None:
            self.name = ''
        self.name = self.name.lower()
        log.debug('storeRealm()')

        Session.add(self)
        Session.flush()

        log.debug('store realm success')
        return True
コード例 #6
0
    def storeToken(self):
        if self.LinOtpUserid is None:
            self.LinOtpUserid = u''
        if self.LinOtpIdResClass is None:
            self.LinOtpIdResClass = ''
        if self.LinOtpIdResolver is None:
            self.LinOtpIdResolver = ''

        Session.add(self)
        Session.flush()

        return True
コード例 #7
0
    def storeToken(self):
        if self.LinOtpUserid is None:
            self.LinOtpUserid = u''
        if self.LinOtpIdResClass is None:
            self.LinOtpIdResClass = ''
        if self.LinOtpIdResolver is None:
            self.LinOtpIdResolver = ''

        Session.add(self)
        Session.flush()

        return True
コード例 #8
0
ファイル: __init__.py プロジェクト: ukris/LinOTP
    def storeToken(self):
        if self.LinOtpUserid is None:
            self.LinOtpUserid = u''
        if self.LinOtpIdResClass is None:
            self.LinOtpIdResClass = ''
        if self.LinOtpIdResolver is None:
            self.LinOtpIdResolver = ''

        log.debug('storeToken()')
        Session.add(self)
        Session.flush()
        Session.commit()
        log.debug('store token success')
        return True
コード例 #9
0
ファイル: __init__.py プロジェクト: ccppjava/LinOTP
    def storeToken(self):
        if self.LinOtpUserid is None:
            self.LinOtpUserid = u''
        if self.LinOtpIdResClass is None:
            self.LinOtpIdResClass = ''
        if self.LinOtpIdResolver is None:
            self.LinOtpIdResolver = ''

        log.debug('storeToken()')
        Session.add(self)
        Session.flush()
        Session.commit()
        log.debug('store token success')
        return True
コード例 #10
0
    def save(self):
        '''
        enforce the saving of a challenge
        - will guarantee the uniqness of the transaction id

        :return: transaction id of the stored challenge
        '''
        try:
            Session.add(self)
            Session.flush()

        except Exception as exce:
            log.exception('[save]Error during saving challenge')

        return self.transid
コード例 #11
0
    def save(self):
        '''
        enforce the saving of a challenge
        - will guarantee the uniqness of the transaction id

        :return: transaction id of the stored challenge
        '''
        try:
            Session.add(self)
            Session.flush()

        except Exception as exce:
            log.exception('[save]Error during saving challenge')

        return self.transid
コード例 #12
0
ファイル: __init__.py プロジェクト: alexxtasi/LinOTP
    def storeToken(self):
        log.debug('storeToken()')

        if self.LinOtpUserid is None:
            self.LinOtpUserid = u''
        if self.LinOtpTokenDesc is None:
            self.LinOtpTokenDesc = u''
        if self.LinOtpTokenInfo is None:
            self.LinOtpTokenInfo = u''

        Session.add(self)
        Session.flush()
        Session.commit()
        log.debug('store token success')
        return True
コード例 #13
0
    def save(self):

        Session.add(self)
        Session.flush()

        return self.transid
コード例 #14
0
    def save(self):

        Session.add(self)
        Session.flush()

        return self.transid