Skip to content

Commit

Permalink
MDL-53044 auth : force change on expired password
Browse files Browse the repository at this point in the history
  • Loading branch information
ak4t0sh committed Dec 15, 2016
1 parent 1ca30f2 commit 9de4bbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lang/en/auth.php
Expand Up @@ -42,7 +42,7 @@
$string['auth_multiplehosts'] = 'Multiple hosts OR addresses can be specified (eg host1.com;host2.com;host3.com) or (eg xxx.xxx.xxx.xxx;xxx.xxx.xxx.xxx)';
$string['auth_notconfigured'] = 'The authentication method {$a} is not configured.';
$string['auth_outofnewemailupdateattempts'] = 'You have run out of allowed attempts to update your email address. Your update request has been cancelled.';
$string['auth_passwordisexpired'] = 'Your password has expired. Do you want to change your password now?';
$string['auth_passwordisexpired'] = 'Your password has expired. Please change it now.';
$string['auth_passwordwillexpire'] = 'Your password will expire in {$a} days. Do you want to change your password now?';
$string['auth_remove_delete'] = 'Full delete internal';
$string['auth_remove_keep'] = 'Keep internal';
Expand Down
1 change: 1 addition & 0 deletions login/index.php
Expand Up @@ -233,6 +233,7 @@
echo $OUTPUT->footer();
exit;
} elseif (intval($days2expire) < 0 ) {
set_user_preference('auth_forcepasswordchange', 1, $USER);
echo $OUTPUT->header();
echo $OUTPUT->confirm(get_string('auth_passwordisexpired', 'auth'), $passwordchangeurl, $urltogo);
echo $OUTPUT->footer();
Expand Down

0 comments on commit 9de4bbf

Please sign in to comment.