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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/passwordtoken.py   LinOTP(Download)
        pw_len = len(sp.getPassword())
        log.debug("[setOtpLen] setting otplen to %d" % pw_len)
        TokenClass.setOtpLen(self, pw_len)
        return
 

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/ocra2token.py   LinOTP(Download)
        ocraSuite = OcraSuite(self.ocraSuite)
        otplen = ocraSuite.truncation
        self.setOtpLen(otplen)
 
        ocraPin = params.get('ocrapin', None)

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/yubicotoken.py   LinOTP(Download)
 
        self.tokenid = tokenid
        self.setOtpLen(44)
 
        TokenClass.update(self, param)

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/remotetoken.py   LinOTP(Download)
        # if another OTP length would be specified in /admin/init this would
        # be overwritten by the parent class, which is ok.
        self.setOtpLen(6)
 
        val = getParam(param, "remote.local_checkpin", optional)