diff --git a/README.md b/README.md index 000b49e..a546a02 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/src/routes/user/login.ts b/src/routes/user/login.ts index bf9dec6..9702131 100644 --- a/src/routes/user/login.ts +++ b/src/routes/user/login.ts @@ -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"