1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 06:49:37 +02:00

Fix login issue with different case usernames

This commit is contained in:
Sean Morley 2024-09-11 09:42:53 -04:00
parent 5df1c4cba9
commit abee735aae
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ class UserDetailsSerializer(serializers.ModelSerializer):
return username return username
from allauth.account.adapter import get_adapter 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 return username
class Meta: class Meta:

View file

@ -9,7 +9,7 @@
}); });
</script> </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 }} {#each toastList as { type, message, id, duration }}
{#if type == 'success'} {#if type == 'success'}
<div class="alert alert-success"> <div class="alert alert-success">