修改登录密码解密

This commit is contained in:
liaofei 2023-05-17 09:25:55 +08:00
parent 767acd52f8
commit 488e32afa1

View File

@ -95,9 +95,6 @@ class Login extends AuthController
['captchaType', '']
], true);
if (strlen(trim($password)) < 6 || strlen(trim($password)) > 32) {
return app('json')->fail(400762);
}
if ($captchaVerification != '') {
try {
@ -112,7 +109,11 @@ class Login extends AuthController
} catch (\Throwable $e) {
return app('json')->fail($e->getMessage());
}
if (strlen(trim($password)) < 6 || strlen(trim($password)) > 32) {
return app('json')->fail(400762);
}
$this->validate(['account' => $account, 'pwd' => $password], \app\adminapi\validate\setting\SystemAdminValidata::class, 'get');