1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-30 19:00:32 +02:00

Merge pull request #431 from barryhughes/patch-1

Make password constraints consistent.
This commit is contained in:
trendschau
2023-12-27 12:37:12 +01:00
committed by GitHub

View File

@@ -263,7 +263,7 @@ class Validation
$v = new Validator($params);
$v->rule('required', ['username', 'password'])->message("Required");
$v->rule('alphaNum', 'username')->message("Invalid characters");
$v->rule('lengthBetween', 'password', 5, 20)->message("Length between 5 - 20");
$v->rule('lengthBetween', 'password', 5, 40)->message("Length between 5 - 40");
$v->rule('lengthBetween', 'username', 3, 20)->message("Length between 3 - 20");
if($v->validate())
@@ -888,4 +888,4 @@ class Validation
return $output;
}
}
}