CheckPasswordSignInAsync returns fail when password is correct
When the following line is run: result is always Failed. Under the hood CheckPasswordSignInAsync runs CheckPasswordAsync which runs VerifyPasswordAsync which runs I can't view VerifyHashedPassword so I am now stuck.
I suspect something is up with user but I have no idea what could be wrong with that either.
Has anyone had this problem before?
Update: It turns out in VerifyHashedPassword there is a switch statement, the input to wich is derived from decoding the hashed password and it always goes to the default case which returns failure.
18 Replies
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
I do not and I don't know how to set that up to be honest(I'll look into it after I send this message).
It does reproduce with a new account.
The last thing it does before returning the message "Email or Password not found/incorrect" is line 691 in CheckPasswordAsync, it skips all the break points I have set up after it.
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Its a message that I wrote:
Its right after
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Do you mean on something like stackblitz?
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
https://github.com/KevDev23/minibackend
I chunked it down, let me know if it does something wonky. Have a good weekend!
GitHub
GitHub - KevDev23/minibackend: temp for help sorting out a error
temp for help sorting out a error. Contribute to KevDev23/minibackend development by creating an account on GitHub.
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
I'll have touch upon it tomorrow. Rn I only needed it to have 1 admin account so theres a file(ManagerSeeder) that should insert a user.
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
The seeder for the database seems fine, have you tried logging in?
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
The ManagerSeeder file is there, I'm going to check to see I didn't delete the dependency injection that runs it from Program.cs on accident
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
OH ok ManagerSeeder inserts a user, it doesn't do anything with create. Create does nothing because I prioritized something else and then ran into the bugs I was having problems with and now we're here. Visual Studio asked if I wanted to drop in CRUD functions for me and I went "yeah why not"
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
There is a user, one is created by default with ManagerSeeder when run if the Manager table is empty
You can modify how that works if you think something about the user accounts has to change