fix: Fixes logging in being too quick.
This commit is contained in:
parent
2e86eff868
commit
8015b0af74
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ export function route(routeOptions: RouteOptions) {
|
|||
error: "Email or password is incorrect"
|
||||
});
|
||||
|
||||
const passwordIsValid = compare(userSearch.password, body.password);
|
||||
const passwordIsValid = await compare(body.password, userSearch.password);
|
||||
|
||||
if (!passwordIsValid) return res.status(403).send({
|
||||
error: "Email or password is incorrect"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue