|
@@ -77,6 +77,9 @@ class AdminController extends BaseController
|
|
|
if (empty($password)) {
|
|
if (empty($password)) {
|
|
|
util::fail('请填写密码');
|
|
util::fail('请填写密码');
|
|
|
}
|
|
}
|
|
|
|
|
+ if (strlen($password) <= 6) {
|
|
|
|
|
+ util::fail('密码必须大于6位');
|
|
|
|
|
+ }
|
|
|
$level = stringUtil::passwordLevel($password);
|
|
$level = stringUtil::passwordLevel($password);
|
|
|
if ($level <= 0) {
|
|
if ($level <= 0) {
|
|
|
util::fail('密码不能纯字母或纯数字');
|
|
util::fail('密码不能纯字母或纯数字');
|