修改登录认证方法

Signed-off-by: 码龍 <695798354@qq.com>
pull/415/head
码龍 2022-09-20 09:00:14 +00:00 committed by Gitee
parent b236941904
commit 56ececc487
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class Auth extends \fast\Auth
$this->setError('Please try again after 1 day');
return false;
}
if ($admin->password != md5(md5($password) . $admin->salt)) {
if ($admin->password != Admin::encryptPassword($password, $admin->salt)) {
$admin->loginfailure++;
$admin->save();
$this->setError('Password is incorrect');