def setOtpLen(self, otplen): ''' sets the OTP length to the length of the password ''' secObj = self._get_secret_object() sp = PasswordTokenClass.__secretPassword__(secObj) pw_len = len(sp.getPassword()) TokenClass.setOtpLen(self, pw_len) return
def setOtpLen(self, otplen): ''' sets the OTP length to the length of the password ''' secObj = self._get_secret_object() sp = PasswordTokenClass.__secretPassword__(secObj) pw_len = len(sp.getPassword()) log.debug("[setOtpLen] setting otplen to %d" % pw_len) TokenClass.setOtpLen(self, pw_len) return
def setOtpLen(self, otplen): ''' sets the OTP length to the length of the password ''' secretHOtp = self.token.getHOtpKey() sp = PasswordTokenClass.__secretPassword__(secretHOtp) pw_len = len(sp.getPassword()) log.debug("[setOtpLen] setting otplen to %d" % pw_len) TokenClass.setOtpLen(self, pw_len) return