X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/94a4fcc7ab9e1713dc2defc8b35c875fc90f6fa5..39c7b0bdbe5157ba606196042b2a7309d492eca0:/src/wolnelektury/settings/auth.py diff --git a/src/wolnelektury/settings/auth.py b/src/wolnelektury/settings/auth.py index b150b990f..89e520f46 100644 --- a/src/wolnelektury/settings/auth.py +++ b/src/wolnelektury/settings/auth.py @@ -1,11 +1,14 @@ -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # AUTHENTICATION_BACKENDS = [ - 'django.contrib.auth.backends.ModelBackend', - # 'allauth.account.auth_backends.AuthenticationBackend', + #'django.contrib.auth.backends.ModelBackend', + 'allauth.account.auth_backends.AuthenticationBackend', ] ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2 +ACCOUNT_AUTHENTICATION_METHOD = "username_email" +FEATURE_CONFIRM_USER = False + LOGIN_URL = '/uzytkownik/login/' LOGIN_REDIRECT_URL = '/'