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

@@ -5,7 +5,7 @@ const validateLogin = function(requestBody){
const email = validator.isEmail(requestBody.email) && validator.isLength(requestBody.email, { max: 64 })
const password = validator.isLength(requestBody.password, { max: 64 });
if(!email || !password){
throw newError("Dane logowania nieprawidłowe :/", 400);
throw newError("Dane logowania nieprawidłowe :/", 403);
}
}