mirror of https://gitee.com/karson/fastadmin.git
parent
4a478c317e
commit
b236941904
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue