def __init__(self, aToken): RemoteTokenClass.__init__(self, aToken) self.setType(u"radius") self.radiusServer = "" self.radiusUser = "" self.radiusLocal_checkpin = "0" self.radiusSecret = VOID_RADIUS_SECRET
def checkPin(self, pin, options=None): ''' check the pin - either remote or localy - in case of remote, we return true, as the the splitPinPass will put the passw then in the otpVal :param pin: the pin which should be checked :param options: the additional request parameters ''' res = True if self.check_pin_local(): log.debug("[checkPin] [radiustoken] checking PIN locally") res = RemoteTokenClass.checkPin(self, pin) return res