Closed ortund closed 6 years ago
So yes, templates to simplify make email and username the same, and if you let folks edit you have to keep it in sync. Your avatar is quite appropriate here. So, dupe of #1541 and partially #801
Which will be addressed by #1721 eventually.
As it's a dupe, and a tracking issue is there for work to fix it, I'm going to close this one, but feel free to reopen if you don't believe the other issue covers the same thing.
This has always been a problem I've had implementing logins with Identity.
So the PasswordSignIn function requires the userName be supplied:
Whether on an MVC project or an ASP.NET Web Forms project, the project template, when using Individual Accounts, generates code that supplies the email address:
Because of this, the login will always fail. In order to rectify, it's necessary to either require the user to remember their username (I never remember username, but always remember email address), or to modify the code as follows to get the username associated with the account associated with the input email address:
Seems a little bit counter intuitive to have a template written that I have to modify so that it actually works.