Add more user friendly explanation if user is forced to change password
on first login.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user