Skip to content

Commit 15c7e82

Browse files
committed
remove getattr _sp_force_authn default value
1 parent ba41c2a commit 15c7e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def login(request,
147147

148148
kwargs = {}
149149
# pysaml needs a string otherwise: "cannot serialize True (type bool)"
150-
if getattr(conf, '_sp_force_authn',False):
150+
if getattr(conf, '_sp_force_authn'):
151151
kwargs['force_authn'] = "true"
152152
if getattr(conf, '_sp_allow_create', "false"):
153153
kwargs['allow_create'] = "true"

0 commit comments

Comments
 (0)