From f0fc458a82e747fdbce7441e0680992e3dcf62d3 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 15 Jul 2005 06:09:34 +0000 Subject: [PATCH] More Hive integration --- sso/hive/expired.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sso/hive/expired.php diff --git a/sso/hive/expired.php b/sso/hive/expired.php new file mode 100644 index 00000000000..683767d79b9 --- /dev/null +++ b/sso/hive/expired.php @@ -0,0 +1,27 @@ +HIVE_PASSWORD)) { // We don't have old password + error('Sorry, but Hive has timed out, you need to log in again', + $CFG->wwwroot.'/login/logout.php'); + } + +/// Try and log back in silently + + if (sso_user_login($USER->username, $SESSION->HIVE_PASSWORD)) { // Log back into Hive + + /// Need something in here to redirect back to Hive + + } else { + error('Sorry, could not restore Hive connection, please try logging in again', + $CFG->wwwroot.'/login/logout.php'); + } + + +?>