瀏覽代碼

密码长度

lizhen_gitee 5 月之前
父節點
當前提交
66ed0344fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();