Permalink
Browse files

mnet: as reported by Eloy - login failures should be helpful to mnet …

…users _only_ if mnet and auth/mnet are running
  • Loading branch information...
1 parent 6e55c60 commit f6b9882c42e94f2946dce880200bf5bef7dc4348 martinlanghoff committed Jan 23, 2007
Showing with 5 additions and 2 deletions.
  1. +2 −0 lang/en_utf8/mnet.php
  2. +3 −2 login/index.php
View
@@ -226,4 +226,6 @@
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 />';
+
?>
View
@@ -226,8 +226,9 @@
}
// 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");
}
}
}

0 comments on commit f6b9882

Please sign in to comment.