Add more user friendly explanation if user is forced to change password

on first login.
This commit is contained in:
thepurpleblob
2005-09-13 15:03:52 +00:00
parent b1f65701ed
commit fc23641e7d
2 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -11,7 +11,10 @@
error('No such course!');
}
if (empty($USER->preference['auth_forcepasswordchange'])) { // Don't redirect if they just got sent here
// did we get here because of a force password change
$forcepassword = !empty($USER->preference['auth_forcepasswordchange']);
if (!$forcepassword) { // Don't redirect if they just got sent here
require_login($id);
}
+7
View File
@@ -1,3 +1,10 @@
<?php
// only display this help message if we are being forced to change
if ($forcepassword) {
notify( get_string('forcepasswordchangenotice') );
}
?>
<p><b><?php print_string("allfieldsrequired") ?></b></p>
<?php
if (empty($frm->username)) {