This commit is contained in:
2021-02-08 15:48:33 +01:00
parent 1434918f8e
commit 9dd4d10396
5 changed files with 42 additions and 16 deletions

View File

@@ -40,7 +40,7 @@ function decodeAndSanitize(query) {
async function checkPassword(password, hash) {
const result = await bcrypt.compare(password, hash);
if (!result) throw newError("Hasło nieprawidłowe", 401);
if (!result) throw newError("Hasło nieprawidłowe", 403);
}
function generateAuthToken(user) {