Browse Source

密码长度

lizhen_gitee 4 months ago
parent
commit
66ed0344fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/controller/general/Profile.php

+ 1 - 1
application/admin/controller/general/Profile.php

@@ -59,7 +59,7 @@ class Profile extends Backend
                 $this->error(__("Please input correct email"));
             }
             if (isset($params['password'])) {
-                if (!Validate::is($params['password'], "/^[\S]{6,16}$/")) {
+                if (!Validate::is($params['password'], "/^[\S]{6,30}$/")) {
                     $this->error(__("Please input correct password"));
                 }
                 $params['salt'] = Random::alnum();