fix: Fixes logging in being too quick.

This commit is contained in:
greysoh 2024-04-28 14:08:16 -04:00
parent 2e86eff868
commit 8015b0af74
No known key found for this signature in database
GPG key ID: FE0F173B8FC01571
2 changed files with 2 additions and 2 deletions

View file

@ -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 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` 3. Build the docker stack: `docker compose --env-file .env up -d`

View file

@ -42,7 +42,7 @@ export function route(routeOptions: RouteOptions) {
error: "Email or password is incorrect" 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({ if (!passwordIsValid) return res.status(403).send({
error: "Email or password is incorrect" error: "Email or password is incorrect"