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:
Petr Skoda 2010-10-10 21:48:12 +00:00
parent 8a8f1c7cd6
commit 0c9c5ef0f5

View File

@ -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);
}