Minimum password length should be 4 characters
Because the minimum password length on User model is 4 https://github.com/octobercms/october/blob/master/modules/backend/models/User.php#L26-L27
This commit is contained in:
parent
b83abdb156
commit
676a4d00bc
|
|
@ -64,7 +64,7 @@ class Auth extends Controller
|
|||
{
|
||||
$rules = [
|
||||
'login' => 'required|min:2|max:32',
|
||||
'password' => 'required|min:2'
|
||||
'password' => 'required|min:4'
|
||||
];
|
||||
|
||||
$validation = Validator::make(post(), $rules);
|
||||
|
|
@ -96,7 +96,7 @@ class Auth extends Controller
|
|||
BackendAuth::logout();
|
||||
return Backend::redirect('backend');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Request a password reset verification code.
|
||||
*/
|
||||
|
|
@ -176,7 +176,7 @@ class Auth extends Controller
|
|||
}
|
||||
|
||||
$rules = [
|
||||
'password' => 'required|min:2'
|
||||
'password' => 'required|min:4'
|
||||
];
|
||||
|
||||
$validation = Validator::make(post(), $rules);
|
||||
|
|
|
|||
Loading…
Reference in New Issue