methods if the remote hosts allows them. Such enrolments are listed under
<em>Other enrolled users</em>';
$string['host'] = 'host';
+$string['loginlinkmnetuser'] = '<br/>If you are a Moodle Network remote user and can <a href=\"$a\">confirm your email address here</a>, you can be redirected to your login page.<br />';
+
?>
}
// TODO: if the user failed to authenticate, check if the username corresponds to a remote mnet user
- if ($users = get_records('user', 'username', $frm->username)) {
- $errormsg .= "<br/>If you are a Moodle Network remote user and can <a href=\"mnet_email.php?u=$frm->username\">confirm your email address here</a>, you can be redirected to your login page.<br/>";
+ if ( $CFG->mnet_dispatcher_mode === 'strict'
+ && is_enabled_auth('mnet')) {
+ $errormsg .= get_string('loginlinkmnetuser', 'mnet', "mnet_email.php?u=$frm->username");
}
}
}