开放密码加密方法

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

View File

@ -32,9 +32,9 @@ class Admin extends Model
} }
// 密码加密 // 密码加密
protected function encryptPassword($password, $salt = '', $encrypt = 'md5') public static function encryptPassword($password, $salt = '', $encrypt = 'md5')
{ {
return $encrypt($password . $salt); return $encrypt($encrypt($password) . $salt);
} }
} }