Problem of comptabilty betwen mcae, Email based self registration and the "login as" administration function.
The following code is incompatible with the "login as" administration function.
<?php
global $SESSION, $USER;
if ($USER->id != 0) { // Only for autenticated users
$mcae = get_auth_plugin('mcae'); //Get mcae plugin
if (isset($SESSION->mcautoenrolled)) {
if (!$SESSION->mcautoenrolled) {
$mcae->user_authenticated_hook($USER,$USER->username,""); //Autoenrol if mcautoenrolled FALSE
}
} else {
$mcae->user_authenticated_hook($USER,$USER->username,""); //Autoenrol if mcautoenrolled NOT SET
}
}
?>
Problem of comptabilty betwen mcae, Email based self registration and the "login as" administration function.
The following code is incompatible with the "login as" administration function.