about summary refs log tree commit diff stats
path: root/login.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-01-12 17:37:02 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-01-12 17:37:02 +0300
commite9ef6f924268351cf37c47ee3fb229359fff1f30 (patch)
tree1d7abc7f2de421ea7bfa89e3bb18de7ef65864e6 /login.php
parentadfe3ce04d9b21891307f7d7ddb7003e8b53342f (diff)
downloadthe-epube-e9ef6f924268351cf37c47ee3fb229359fff1f30.tar.gz
the-epube-e9ef6f924268351cf37c47ee3fb229359fff1f30.tar.xz
verify oidc access token hourly
Diffstat (limited to 'login.php')
-rw-r--r--login.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/login.php b/login.php
index 96375d7..4817965 100644
--- a/login.php
+++ b/login.php
@@ -71,6 +71,9 @@
 
 					session_regenerate_id(true);
 
+					$_SESSION["access_token"] = $oidc->getAccessToken();
+					$_SESSION["access_token_last_check"] = time();
+
 					$_SESSION["owner"] = $username;
 					$_SESSION["pass_hash"] = sha1($user->pass);
 					$_SESSION["csrf_token"] = bin2hex(random_bytes(16));