IvanParvanovski / WorkPal

MIT License
0 stars 0 forks source link

When creating users, authentication should be based on their email addresses, which must be unique, instead of their usernames. #37

Closed IvanParvanovski closed 3 months ago

IvanParvanovski commented 4 months ago

When attempting to create a user with a unique email address, I encountered an exception because the specified username was already in use by another record. The exception indicated that a unique username is required.

_IntegrityError at /accounts/sign_up/ duplicate key value violates unique constraint "accounts_app_customuser_usernamekey" DETAIL: Key (username)=(Ivan Parvanovski) already exists.

It should be unique email address not username