1
0
mirror of https://github.com/gamaio/lobli.git synced 2025-08-13 02:08:45 +00:00

Reload page if token invalid

This isn't the most graceful way to do it, but better than nothing I guess.
This commit is contained in:
alopexc0de
2014-08-29 14:24:02 -04:00
parent cb3008536d
commit 298b2606ea

View File

@@ -87,9 +87,8 @@
}
if(!$redis->exists("tokens:".$_SESSION['token']) || $redis->get("tokens:".$_SESSION['token']) == 1){
echo "<script>alert('Invalid or expired token. Please try again');</script>";
include("Include/PHP/token.php");
header("location:index.php");
echo "<script>window.location = \"index.php\";</script>";
}
$redis->set("tokens:".$_SESSION['token'], 1);