0.11.12 Google Auth

This commit is contained in:
SDE
2024-01-15 16:47:53 +03:00
parent 3dacc0316e
commit a0eb5210ab
2 changed files with 7 additions and 0 deletions

View File

@@ -40,6 +40,12 @@ WEBPUSH_SETTINGS = {
SOCIALACCOUNT_LOGIN_ON_GET=True
ACCOUNT_DEFAULT_HTTP_PROTOCOL='https'
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_USERNAME_REQUIRED = False
ACCOUNT_AUTHENTICATION_METHOD = 'email'
ACCOUNT_EMAIL_VERIFICATION = 'optional'
LOGIN_REDIRECT_URL = '/profile/login/'
AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
'allauth.account.auth_backends.AuthenticationBackend',

View File

@@ -13,6 +13,7 @@ urlpatterns = [
path('i18n/', include('django.conf.urls.i18n')),
path('accounts/', include('allauth.urls')),
path('accounts/', include('allauth.socialaccount.urls')),
path('messages/', include('ChatServiceApp.urls')),