Login: Mitigate invalid token message.

This commit is contained in:
Nate
2020-05-19 16:16:28 -06:00
parent 7570ae5e25
commit d725808820
2 changed files with 6 additions and 1 deletions

View File

@@ -75,7 +75,7 @@
//validate the token
$token = new token;
if (!$token->validate('/app/devices/device_dashboard.php')) {
if (!$token->validate('/app/devices/device_dashboard.php') && !$token->validate('login')) {
message::add($text['message-invalid_token'],'negative');
header('Location: '.PROJECT_PATH."/core/user_settings/user_dashboard.php");
exit;