views: fix setting of isPassive and forceAuthn (fixes #7100)

This commit is contained in:
Benjamin Dauvergne 2015-04-29 23:38:22 +02:00
parent 8687da892c
commit 6dab31ace8
1 changed files with 2 additions and 2 deletions

View File

@ -155,9 +155,9 @@ class LoginView(LogMixin, View):
policy.format = utils.get_setting(idp, 'NAME_ID_POLICY_FORMAT')
force_authn = utils.get_setting(idp, 'FORCE_AUTHN')
if force_authn:
policy.forceAuthn = True
authn_request.forceAuthn = True
if request.GET.get('passive') == '1':
policy.isPassive = True
authn_request.isPassive = True
# configure requested AuthnClassRef
authn_classref = utils.get_setting(idp, 'AUTHN_CLASSREF')
if authn_classref: