Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(9)  |  Derive(0)  |  Import(7)

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokenclass.py   LinOTP(Download)
from linotp.lib.apps    import create_oathtoken_url
 
from linotp.lib.validate import check_pin
from linotp.lib.validate import check_otp
from linotp.lib.validate import split_pin_otp
        (res, pin, otpval) = split_pin_otp(self, passw, user, options=options)
        if res != -1:
            pin_match = check_pin(self, pin, user=user, options=options)
            if pin_match is True:
                otp_counter = check_otp(self, otpval, options=options)
        request_is_valid = False
 
        pin_match = check_pin(self, passw, user=user, options=options)
        if pin_match is True:
            if "data" in options or "challenge" in options:

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/smstoken.py   LinOTP(Download)
from linotp.lib.util    import required
 
from linotp.lib.validate import check_pin
from linotp.lib.validate import check_otp
from linotp.lib.validate import split_pin_otp
                                                            options=options)
            if res >= 0 :
                res = check_pin(self, pin, user=user, options=options)
                if res == True and len(otpval) > 0:
                    challenge_response = True
        #(res, pin, otpval) = split_pin_otp(self, passw, user, options=options)
 
        pin_match = check_pin(self, passw, user=user, options=options)
        if pin_match is True:
            request_is_valid = True
 
        if res >= 0:
            res = check_pin(self, pin, user=user, options=options)
            if res == True:
                otp_val = otp

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/hmactoken.py   LinOTP(Download)
from linotp.lib.tokenclass import TokenClass
 
from linotp.lib.validate import check_pin
from linotp.lib.validate import check_otp
from linotp.lib.validate import split_pin_otp
 
        trigger_challenge = False
        pin_match = check_pin(self, passw, user=user, options=options)
        if pin_match is True:
            trigger_challenge = True

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/remotetoken.py   LinOTP(Download)
from linotp.lib.util import getParam
from linotp.lib.validate import split_pin_otp
from linotp.lib.validate import check_pin
 
optional = True
 
        if self.check_pin_local():
            pin_match = check_pin(self, passw, user=user, options=options)
            if pin_match is True:
                request_is_valid = True

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/yubikeytoken.py   LinOTP(Download)
required = False
 
from linotp.lib.validate import check_pin
 
from linotp.lib.tokenclass import TokenClass
        request_is_valid = False
 
        pin_match = check_pin(self, passw, user=user, options=options)
        if pin_match is True:
            request_is_valid = True

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/spasstoken.py   LinOTP(Download)
 
from linotp.lib.util    import getParam
from linotp.lib.validate import check_pin
 
optional = True
        '''
        otp_count = -1
        pin_match = check_pin(self, passw, user=user, options=options)
        if pin_match == True:
            otp_count = 0

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/emailtoken.py   LinOTP(Download)
 
from linotp.lib.validate import split_pin_otp
from linotp.lib.validate import check_pin
from linotp.lib.validate import check_otp