MDL-11728 finally defining the exact meaning of is_internal() in auth plugins

internal means "uses password hash for user authentication", there is a new is_synchronised_with_external() method that indicates if moodle should automatically sync user info with external system after login; I have also improved the default for prevent_local_passwords() which is now defaulting to !is_internal()
This commit is contained in:
Petr Skoda
2010-11-14 02:01:59 +00:00
parent 44afba9701
commit 7415aed103
3 changed files with 54 additions and 43 deletions
+1 -1
View File
@@ -3735,7 +3735,7 @@ function authenticate_user_login($username, $password) {
update_internal_user_password($user, $password); // just in case salt or encoding were changed (magic quotes too one day)
if (!$authplugin->is_internal()) { // update user record from external DB
if ($authplugin->is_synchronised_with_external()) { // update user record from external DB
$user = update_user_record($username, get_auth_plugin($user->auth));
}
} else {