From 676a4d00bc7927daf9c896b14e3f84d9d519adc1 Mon Sep 17 00:00:00 2001 From: Mulia Arifandi Nasution Date: Sun, 27 Sep 2015 02:28:12 +0700 Subject: [PATCH] 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 --- modules/backend/controllers/Auth.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/backend/controllers/Auth.php b/modules/backend/controllers/Auth.php index 6c1c37e93..787e4a062 100644 --- a/modules/backend/controllers/Auth.php +++ b/modules/backend/controllers/Auth.php @@ -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);