mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
调整修改管理员密码为非必填;
This commit is contained in:
parent
d28606305a
commit
047e6ee4b3
@ -169,9 +169,13 @@ class SystemAdmin extends AuthController
|
||||
['new_pwd', ''],
|
||||
['conf_pwd', ''],
|
||||
]);
|
||||
if (!preg_match('/^(?![^a-zA-Z]+$)(?!\D+$).{6,}$/', $data['new_pwd'])) {
|
||||
return app('json')->fail(400183);
|
||||
|
||||
if ($data['pwd']) {
|
||||
if (!preg_match('/^(?![^a-zA-Z]+$)(?!\D+$).{6,}$/', $data['new_pwd'])) {
|
||||
return app('json')->fail(400183);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->services->updateAdmin($this->adminId, $data))
|
||||
return app('json')->success(100001);
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user