clownshark5503
clownshark5503
Explore posts from servers
CC#
Created by clownshark5503 on 11/12/2024 in #help
✅ VerifyHashedPassword always returns a Failed result
Yup this worked! Thanks for reaching out!
18 replies
CC#
Created by clownshark5503 on 11/12/2024 in #help
✅ VerifyHashedPassword always returns a Failed result
I was using ToBase64String
18 replies
CC#
Created by clownshark5503 on 11/12/2024 in #help
✅ VerifyHashedPassword always returns a Failed result
In case its not clear and I dont realize that: VerifyHashedPassword is from a aspnetcore identity, I don't really have a say modifying this.
18 replies
CC#
Created by clownshark5503 on 11/12/2024 in #help
✅ VerifyHashedPassword always returns a Failed result
It gets upset if base64 isn't used
18 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
You can modify how that works if you think something about the user accounts has to change
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
There is a user, one is created by default with ManagerSeeder when run if the Manager table is empty
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
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"
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
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
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
The seeder for the database seems fine, have you tried logging in?
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
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.
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
https://github.com/KevDev23/minibackend I chunked it down, let me know if it does something wonky. Have a good weekend!
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
Do you mean on something like stackblitz?
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
Its a message that I wrote:
if (!result.Succeeded)
return Unauthorized("Email or Password not found/incorrect");
if (!result.Succeeded)
return Unauthorized("Email or Password not found/incorrect");
Its right after
var result = await _signInManager.CheckPasswordSignInAsync(user, loginDto.Password ,false);
var result = await _signInManager.CheckPasswordSignInAsync(user, loginDto.Password ,false);
35 replies
CC#
Created by clownshark5503 on 10/4/2024 in #help
CheckPasswordSignInAsync returns fail when password is correct
No description
35 replies
CC#
Created by clownshark5503 on 10/3/2024 in #help
✅ CheckPasswordSignInAsync returns fail when password is correct
We're good man I am facepalming at myself How do mean fox the eternal issue?
35 replies
CC#
Created by clownshark5503 on 10/3/2024 in #help
✅ CheckPasswordSignInAsync returns fail when password is correct
I was removing bogus comments from the code I was pasting to keep it less cluttered and I must have removed a line thats a part of the actual code on accident
35 replies
CC#
Created by clownshark5503 on 10/3/2024 in #help
✅ CheckPasswordSignInAsync returns fail when password is correct
35 replies
CC#
Created by clownshark5503 on 9/27/2024 in #help
[solved]Stuck on a The input is not a valid Base-64 string error
Truncated Stack Trace: System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at System.Convert.FromBase64String(String s) at Microsoft.AspNetCore.Identity.PasswordHasher1.VerifyHashedPassword(TUser user, String hashedPassword, String providedPassword) at Microsoft.AspNetCore.Identity.UserManager1.VerifyPasswordAsync(IUserPasswordStore1 store, TUser user, String password) at Microsoft.AspNetCore.Identity.UserManager1.CheckPasswordAsync(TUser user, String password) at Microsoft.AspNetCore.Identity.SignInManager`1.CheckPasswordSignInAsync(TUser user, String password, Boolean lockoutOnFailure) at backendpv.Controllers.ManagerController.Login(LoginDto loginDto) in C:\Users\Kevin\source\repos\backendpv\backendpv\Controllers\ManagerController.cs:line 40
11 replies
CC#
Created by clownshark5503 on 9/27/2024 in #help
[solved]Stuck on a The input is not a valid Base-64 string error
This one: _signInManager.CheckPasswordSignInAsync(user, loginDto.Password,false); Ah I'm starting to think the next place to look is the stack trace. I'll add it to the post.
11 replies
CC#
Created by clownshark5503 on 9/27/2024 in #help
[solved]Stuck on a The input is not a valid Base-64 string error
Its supposed to check that the password given is the correct password for a given user. Under the hood it uses CheckPasswordAsync for that. I thought the string it was talking about was loginDto.Password but encoding that into base64 didn't change anything. This is what I did to convert it. string encoded = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(loginDto.Password));
11 replies