From 1e8941f335ab9fdb151867fdbbab447f0955ce17 Mon Sep 17 00:00:00 2001 From: Ernest W Durbin III Date: Fri, 13 Sep 2019 16:20:59 -0400 Subject: [PATCH] allow users to login with username or email address we commonly get confusion as people either forget their username or do not realize that they have one. this allows for users to login with either their username or email address --- pydotorg/settings/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pydotorg/settings/base.py b/pydotorg/settings/base.py index 7dbbae4c9..4ad111df5 100644 --- a/pydotorg/settings/base.py +++ b/pydotorg/settings/base.py @@ -74,6 +74,7 @@ ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_EMAIL_VERIFICATION = 'mandatory' +ACCOUNT_AUTHENTICATION_METHOD = 'username_email' SOCIALACCOUNT_EMAIL_REQUIRED = True SOCIALACCOUNT_EMAIL_VERIFICATION = True SOCIALACCOUNT_QUERY_EMAIL = True