MDL-22533 removing obsoleted sso infrastructure - core updated too

This commit is contained in:
Petr Skoda
2010-05-20 17:20:06 +00:00
parent 6c6f9d7fdc
commit 49d957abfc
-11
View File
@@ -3667,17 +3667,6 @@ function authenticate_user_login($username, $password) {
$hauth->user_authenticated_hook($user, $username, $password);
}
/// Log in to a second system if necessary
/// NOTICE: /sso/ will be moved to auth and deprecated soon; use user_authenticated_hook() instead
if (!empty($CFG->sso)) {
include_once($CFG->dirroot .'/sso/'. $CFG->sso .'/lib.php');
if (function_exists('sso_user_login')) {
if (!sso_user_login($username, $password)) { // Perform the signon process
echo $OUTPUT->notification('Second sign-on failed');
}
}
}
if ($user->id===0) {
return false;
}