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:
DL6ER
2018-08-24 19:09:24 +02:00
parent 7a9fcc1676
commit d67f8c66ee

View File

@@ -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.");
}
}