mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
This commit is contained in:
committed by
Raphael Michel
parent
488ee19b11
commit
28242e52aa
@@ -32,7 +32,8 @@ class LoginForm(forms.Form):
|
||||
for k, f in backend.login_form_fields.items():
|
||||
self.fields[k] = f
|
||||
|
||||
if not settings.PRETIX_LONG_SESSIONS:
|
||||
# Authentication backends which use urls cannot have long sessions.
|
||||
if not settings.PRETIX_LONG_SESSIONS or backend.url:
|
||||
del self.fields['keep_logged_in']
|
||||
else:
|
||||
self.fields.move_to_end('keep_logged_in')
|
||||
|
||||
Reference in New Issue
Block a user