Fix login issue with different case usernames
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="toast toast-top toast-end z-50 min-w-20">
|
||||
<div class="toast toast-top mt-14 toast-end z-50 min-w-20">
|
||||
{#each toastList as { type, message, id, duration }}
|
||||
{#if type == 'success'}
|
||||
<div class="alert alert-success">
|
||||
|
||||
Reference in New Issue
Block a user