Closed Dolphinsimon closed 6 years ago
The default implementations assume that, for simplicity, usernames and emails are one and the same. If a user changes email their username needs updating as well. If this doesn't match your use case then you need to start adjusting the code in templates.
@blowdart Thanks for your reply. I checked the default Register page, the default register action set the same value to usernames and emails. I missed this page as we had another register action to handle creating users with different usernames and emails. Sorry for my careless.
Oh it's our fault, not yours, it's badly explained. We have a work item about making it configurable, but it's in the backlog for now. As you're unblocked I'm going to close the issue, feel free to reopen if you have more questions.
In the default scaffolded Identity razor page-Login, users can login with email and password.
However, the OnPostAsync() checks email and password with PasswordSignInAsync() witch sign in users by username and password.
It seems that you won't login to your system forever. So, witch situation was by designed? Login with username or email?