Skip to content

Commit 4bea7f8

Browse files
authored
allow users to login with username or email address (#1510)
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
1 parent 43430a5 commit 4bea7f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydotorg/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
ACCOUNT_EMAIL_REQUIRED = True
7575
ACCOUNT_UNIQUE_EMAIL = True
7676
ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
77+
ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
7778
SOCIALACCOUNT_EMAIL_REQUIRED = True
7879
SOCIALACCOUNT_EMAIL_VERIFICATION = True
7980
SOCIALACCOUNT_QUERY_EMAIL = True

0 commit comments

Comments
 (0)