$string['stdchangepassword_expl'] = 'If the external authentication system allows password changes through Moodle, switch this to Yes. This setting overrides \'Change Password URL\'.';
$string['stdchangepassword_explldap'] = 'NOTE: It is recommended that you use LDAP over an SSL encrypted tunnel (ldaps://) if the LDAP server is remote.';
$string['forcechangepassword'] = 'Force change password';
-$string['forcechangepassword_help'] = 'Force users to change password on their first login to Moodle.';$string['guestloginbutton'] = 'Guest login button';
+$string['forcechangepassword_help'] = 'Force users to change password on their next login to Moodle.';$string['guestloginbutton'] = 'Guest login button';
?>
}
echo " </td>";
echo "</tr>\n";
- if(!$adminself && ($CFG->{'auth_'.$user->auth.'_stdchangepassword'} || $CFG->changepassword)){
+ if(!$adminself && (isset($CFG->{'auth_'.$user->auth.'_stdchangepassword'}) || $CFG->changepassword)){
echo "<tr>";
- echo '<td align=right><p>'.get_string('forcepasswordchange').':</td>';
- echo '<td><input type="checkbox" name="forcepasswordchange" />'.get_string('forcepasswordchange_help').'</td>';
+ echo '<td align=right><p>'.get_string('forcechangepassword', 'auth').':</td>';
+ echo '<td><input type="checkbox" name="forcepasswordchange" />'.get_string('forcechangepassword_help','auth').'</td>';
echo "</tr>";
}
echo "<tr><td colspan=\"2\"><hr /></td></tr>";
}
}
+
?>
<tr valign="top">
<td align="right"><?php print_string("firstname") ?>:</td>