Longer sessions

This commit is contained in:
Agate 2020-07-18 10:30:36 +02:00
parent 10a1ef295f
commit 09cefd2f98
1 changed files with 2 additions and 0 deletions

View File

@ -584,6 +584,8 @@ AUTHENTICATION_BACKENDS = (
"funkwhale_api.users.auth_backends.AllAuthBackend",
)
SESSION_COOKIE_HTTPONLY = False
SESSION_COOKIE_AGE = env.int("SESSION_COOKIE_AGE", default=3600 * 25 * 60)
# Some really nice defaults
ACCOUNT_AUTHENTICATION_METHOD = "username_email"
ACCOUNT_EMAIL_REQUIRED = True