refactor: fix password auth
refactor: move tabs around
This commit is contained in:
parent
316663be32
commit
e397bc884b
17 changed files with 49 additions and 26 deletions
|
@ -79,7 +79,7 @@ export async function POST(req: Request, meta: Record<string, any>): Promise<Res
|
|||
});
|
||||
}
|
||||
|
||||
const verified = await bcrypt.compare(`${password_hash}${password_entry.salt}`, password_entry.hash);
|
||||
const verified = await bcrypt.compare(password_hash, password_entry.hash);
|
||||
|
||||
if (!verified) {
|
||||
return Response.json({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue