changes overanges

This commit is contained in:
2021-01-29 15:27:08 +01:00
parent d5684d922f
commit dc7a92f22a
5 changed files with 78 additions and 15 deletions

View File

@@ -160,7 +160,7 @@ function yearFromNowDate() {
async function hashPass(pass) {
if (pass.length < 6) {
throw newError("Hasło za krótkie.", 500);
throw newError("Hasło za krótkie.", 400);
}
try {
const salt = await bcrypt.genSalt(10);