Skip to content

Commit

Permalink
athentication method reconfiger
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEZE1020 committed Jan 12, 2025
1 parent 0ae36f6 commit 7989721
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion social_media_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7989721

Please sign in to comment.