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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user