From 7dfe4b92d0da0362449c3412375b752e65c80dff Mon Sep 17 00:00:00 2001 From: Michael Aherne Date: Thu, 24 May 2012 13:04:21 +0100 Subject: [PATCH] MDL-33331 Strict warning in Shibboleth auth --- auth/shibboleth/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/auth/shibboleth/index.php b/auth/shibboleth/index.php index 7bc8f90c892..a1e4a1c3840 100644 --- a/auth/shibboleth/index.php +++ b/auth/shibboleth/index.php @@ -30,6 +30,7 @@ /// If we can find the Shibboleth attribute, save it in session and return to main login page if (!empty($_SERVER[$pluginconfig->user_attribute])) { // Shibboleth auto-login + $frm = new stdClass(); $frm->username = strtolower($_SERVER[$pluginconfig->user_attribute]); $frm->password = substr(base64_encode($_SERVER[$pluginconfig->user_attribute]),0,8); // The random password consists of the first 8 letters of the base 64 encoded user ID