Skip to content

Commit

Permalink
MDL-33331 Strict warning in Shibboleth auth
Browse files Browse the repository at this point in the history
  • Loading branch information
micaherne committed May 24, 2012
1 parent cf36df4 commit 7dfe4b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth/shibboleth/index.php
Expand Up @@ -30,6 +30,7 @@


/// If we can find the Shibboleth attribute, save it in session and return to main login page /// 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 if (!empty($_SERVER[$pluginconfig->user_attribute])) { // Shibboleth auto-login
$frm = new stdClass();
$frm->username = strtolower($_SERVER[$pluginconfig->user_attribute]); $frm->username = strtolower($_SERVER[$pluginconfig->user_attribute]);
$frm->password = substr(base64_encode($_SERVER[$pluginconfig->user_attribute]),0,8); $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 // The random password consists of the first 8 letters of the base 64 encoded user ID
Expand Down

0 comments on commit 7dfe4b9

Please sign in to comment.