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
|
@ -32,7 +32,7 @@
|
|||
sed "s/POSTGRES_PASSWORD=nextnet/POSTGRES_PASSWORD=$(head -c 500 /dev/random | sha512sum | cut -d " " -f 1)/g" prod-docker.env > .env
|
||||
```
|
||||
|
||||
2. Build the dockerfile: `docker compose --env-file .env build`
|
||||
2. Build the dockerfile: `docker compose build`
|
||||
|
||||
3. Build the docker stack: `docker compose --env-file .env up -d`
|
||||
|
||||
|
|
|
@ -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