From abee735aae17d8211ec2989a9eb0ec45948ec397 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Wed, 11 Sep 2024 09:42:53 -0400 Subject: [PATCH] Fix login issue with different case usernames --- backend/server/users/serializers.py | 2 +- frontend/src/lib/components/Toast.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/server/users/serializers.py b/backend/server/users/serializers.py index f7e4df6c..63b5b7dc 100644 --- a/backend/server/users/serializers.py +++ b/backend/server/users/serializers.py @@ -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: diff --git a/frontend/src/lib/components/Toast.svelte b/frontend/src/lib/components/Toast.svelte index 5bf90c95..10b563c3 100644 --- a/frontend/src/lib/components/Toast.svelte +++ b/frontend/src/lib/components/Toast.svelte @@ -9,7 +9,7 @@ }); -
+
{#each toastList as { type, message, id, duration }} {#if type == 'success'}