fixes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user