mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-22739 keeping the magic 'changeme' password only for manual auth, it does not make much sense for other types
This commit is contained in:
parent
8a8f1c7cd6
commit
0c9c5ef0f5
@ -172,8 +172,9 @@ if ($frm and isset($frm->username)) { // Login WITH
|
||||
die;
|
||||
}
|
||||
|
||||
if ($frm->password == 'changeme') {
|
||||
//force the change
|
||||
if ($user->auth === 'manual' and $frm->password === 'changeme') {
|
||||
// force the change - this is deprecated and it makes sense only for manual auth,
|
||||
// because most other plugins can not change password easily
|
||||
set_user_preference('auth_forcepasswordchange', true, $user->id);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user