nexus guard use ip

This commit is contained in:
xiaomlove
2022-08-25 22:49:43 +08:00
parent 414aaf9bf5
commit 83e4d5fc5a
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class AuthServiceProvider extends ServiceProvider
return null;
}
if ($cookie["c_secure_login"] == base64("yeah")) {
if ($cookie["c_secure_pass"] != md5($user->passhash . $_SERVER["REMOTE_ADDR"])) {
if ($cookie["c_secure_pass"] != md5($user->passhash . getip())) {
return null;
}
} else {