From 7989721107b4706f9ed4e5eba5f0ee39bc93a05a Mon Sep 17 00:00:00 2001 From: ZEZE1020 Date: Mon, 13 Jan 2025 01:55:53 +0300 Subject: [PATCH] athentication method reconfiger --- social_media_api/settings.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/social_media_api/settings.py b/social_media_api/settings.py index b9f35aa..3ddffb1 100644 --- a/social_media_api/settings.py +++ b/social_media_api/settings.py @@ -76,9 +76,19 @@ # URL configuration LOGIN_REDIRECT_URL = '/' LOGOUT_REDIRECT_URL = '/' + +ACCOUNT_AUTHENTICATION_METHOD = 'username' # Email Verification ACCOUNT_EMAIL_VERIFICATION = 'none' -ACCOUNT_EMAIL_REQUIRED = True +ACCOUNT_EMAIL_REQUIRED = False + +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +EMAIL_HOST = 'your_email_host' +EMAIL_PORT = 587 +EMAIL_USE_TLS = True +EMAIL_HOST_USER = 'your_email_user' +EMAIL_HOST_PASSWORD = 'your_email_password' + # Allauth settings ACCOUNT_AUTHENTICATION_METHOD = 'username_email'