"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "linotpd/src/linotp/tokens/smstoken.py" between
LinOTP-release-2.11.2.tar.gz and LinOTP-release-2.12.tar.gz

About: LinOTP is a flexible and versatile OTP-platform for strong user authentication (two-factor authentication with one time passwords).

smstoken.py  (LinOTP-release-2.11.2):smstoken.py  (LinOTP-release-2.12)
skipping to change at line 245 skipping to change at line 245
def getClassType(cls): def getClassType(cls):
''' '''
return the generic token class identifier return the generic token class identifier
''' '''
return "sms" return "sms"
@classmethod @classmethod
def getClassPrefix(cls): def getClassPrefix(cls):
return "LSSM" return "LSSM"
def get_challenge_validity(self):
'''
This method returns the token specific challenge validity
:return: int - validity in seconds
'''
validity = 120
try:
validity = int(getFromConfig('DefaultChallengeValidityTime', 120))
lookup_for = 'SMSProviderTimeout'
validity = int(getFromConfig(lookup_for, validity))
# instance specific timeout
validity = int(self.getFromTokenInfo('challenge_validity_time',
validity))
except ValueError:
validity = 120
return validity
@classmethod @classmethod
def getClassInfo(cls, key=None, ret='all'): def getClassInfo(cls, key=None, ret='all'):
''' '''
getClassInfo - returns all or a subtree of the token definition getClassInfo - returns all or a subtree of the token definition
:param key: subsection identifier :param key: subsection identifier
:type key: string :type key: string
:param ret: default return value, if nothing is found :param ret: default return value, if nothing is found
:type ret: user defined :type ret: user defined
 End of changes. 1 change blocks. 
23 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)