Skip to content

A free open source IT asset/license management system

Enforce password complexity rules on new account password change

snipe57f4c986af5b
diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php
index 1ad35bd136..4554b0fea3 100755
--- a/app/Http/Controllers/ProfileController.php
+++ b/app/Http/Controllers/ProfileController.php
@@ -119,7 +119,7 @@ class ProfileController extends Controller
$rules = array(
'current_password' => 'required',
- 'password' => 'required|min:6',
+ 'password' => Setting::passwordComplexityRulesSaving('store'),
'password_confirm' => 'required|same:password',
);