"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "linotpd/src/linotp/lib/policy/__init__.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).

__init__.py  (LinOTP-release-2.11.2):__init__.py  (LinOTP-release-2.12)
skipping to change at line 2943 skipping to change at line 2943
pin_policies.append(_get_auth_PinPolicy(user=user)) pin_policies.append(_get_auth_PinPolicy(user=user))
pin_policies = list(set(pin_policies)) pin_policies = list(set(pin_policies))
# ---------------------------------------------------------------------- -- # ---------------------------------------------------------------------- --
# in the context of the selfservice login we precheck the password # in the context of the selfservice login we precheck the password
# so thate the password could be ignored at all # so thate the password could be ignored at all
if request_context['Path'] == '/userservice/login': if request_context['Path'] == '/userservice/login':
pin_policies = [3] return [1]
if len(pin_policies) > 1: if len(pin_policies) > 1:
msg = ("conflicting authentication polices. " msg = ("conflicting authentication polices. "
"Check scope=authentication. policies: %r" % pin_policies) "Check scope=authentication. policies: %r" % pin_policies)
log.error("[__checkToken] %r", msg) log.error("[__checkToken] %r", msg)
raise Exception('multiple pin policies found') raise Exception('multiple pin policies found')
return pin_policies return pin_policies
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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