Skip to content
Browse files

MDL-22739 keeping the magic 'changeme' password only for manual auth,…

… it does not make much sense for other types
  • Loading branch information...
1 parent 8a8f1c7 commit 0c9c5ef0f5912c0d5f36f2a975cf6890fc294662 @skodak skodak committed Oct 10, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 login/index.php
View
5 login/index.php
@@ -172,8 +172,9 @@
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);
}

0 comments on commit 0c9c5ef

Please sign in to comment.
Something went wrong with that request. Please try again.