Skip to content

Commit

Permalink
Upgrade: Adopt changes from MDL-66151 and use \core\session\manager::…
Browse files Browse the repository at this point in the history
…destroy_user_sessions() now
  • Loading branch information
abias committed Nov 12, 2024
1 parent a6d7acb commit 438d462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2024-11-12 - Upgrade: Adopt changes from MDL-66151 and use \core\session\manager::destroy_user_sessions() now.
* 2024-11-12 - Improvement: Change location of event observer code, resolves #26

### v4.5-r1
Expand Down
2 changes: 1 addition & 1 deletion auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function sync_users($do_updates=true) {
$updateuser->suspended = 1;
user_update_user($updateuser, false);
mtrace("\t".get_string('auth_dbsuspenduser', 'auth_db', array('name'=>$user->username, 'id'=>$user->id)));
\core\session\manager::kill_user_sessions($user->id);
\core\session\manager::destroy_user_sessions($user->id);;
}
} else {
mtrace(get_string('nouserentriestoremove', 'auth_ldap'));
Expand Down

0 comments on commit 438d462

Please sign in to comment.