mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-21 22:09:36 +02:00
Fix login issue with different case usernames
This commit is contained in:
parent
5df1c4cba9
commit
abee735aae
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ class UserDetailsSerializer(serializers.ModelSerializer):
|
|||
return username
|
||||
|
||||
from allauth.account.adapter import get_adapter
|
||||
username = get_adapter().clean_username(username)
|
||||
username = get_adapter().clean_username(username.lower()) # Convert username to lowercase
|
||||
return username
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue