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'); + } + + +?>