mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-45814-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
6da79391ca
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ if ($frm and isset($frm->username)) { // Login WITH
|
|||
/// check if user password has expired
|
||||
/// Currently supported only for ldap-authentication module
|
||||
$userauth = get_auth_plugin($USER->auth);
|
||||
if (!empty($userauth->config->expiration) and $userauth->config->expiration == 1) {
|
||||
if (!isguestuser() and !empty($userauth->config->expiration) and $userauth->config->expiration == 1) {
|
||||
if ($userauth->can_change_password()) {
|
||||
$passwordchangeurl = $userauth->change_password_url();
|
||||
if (!$passwordchangeurl) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue