Username and Email field in the User model
I have a question regarding the User model, which I'm not sure it if's part of the standard Wasp setup or OpenSaaS specific.
By default, they contain the user's email.
I'd like the user to be able to change their username, as there is no need to repeat the same information twice, but I want to make sure it's safe to do so.
What surprises me is that the
By default, they contain the user's email.
I'd like the user to be able to change their username, as there is no need to repeat the same information twice, but I want to make sure it's safe to do so.
What surprises me is that the
username field in the User model is marked as @unique, which suggests it might be used for login purposes.