Skip to content

Commit

Permalink
Fix login issue with different case usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorley15 committed Sep 11, 2024
1 parent 5df1c4c commit abee735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/server/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def validate_username(username):
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:
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/Toast.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit abee735

Please sign in to comment.