mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Wrong token is either when users try to do it via an old session or through a script. Hence, the message should tell the user to re-login
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -102,7 +102,7 @@ function check_csrf($token) {
|
||||
}
|
||||
|
||||
if(!hash_equals($_SESSION['token'], $token)) {
|
||||
log_and_die("Wrong token! Check if cookies are enabled on your system.");
|
||||
log_and_die("Wrong token! Please re-login on the Pi-hole dashboard.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user