mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +00:00
Actually verify the password on login
This commit is contained in:
parent
d96f084322
commit
bb4cecee2e
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ namespace LBPUnion.ProjectLighthouse.Pages.ExternalAuth
|
|||
User? user = await this.database.Users.FirstOrDefaultAsync(u => u.Username == username);
|
||||
if (user == null) return this.StatusCode(403, "");
|
||||
|
||||
if (!BCrypt.Net.BCrypt.Verify(password, user.Password)) return this.StatusCode(403, "");
|
||||
|
||||
Console.WriteLine(user.UserId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue