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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/vascotoken.py   LinOTP(Download)
try:
    from linotpee.lib.ImportOTP.vasco import vasco_otp_check
    from linotpee.lib.ImportOTP.vasco import compress
    from linotpee.lib.ImportOTP.vasco import decompress
    VASCO = True
            (res, data) = vasco_otp_check(data, anOtpVal)
            # update the vasco data blob
            self.update({"otpkey" : compress(data)})
        else:
            log.warning("[checkOtp] Trying to validate a vasco token, but the module is not loaded!")