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:
Mulia Arifandi Nasution 2015-09-27 02:28:12 +07:00
parent b83abdb156
commit 676a4d00bc
1 changed files with 3 additions and 3 deletions

View File

@ -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);