mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-78179 badges: Clean SESSION when user disconnect backpack
The token information was not being properly cleared from the $SESSION. As a result, certain errors were occurring when users attempted to reconnect within the same session.
This commit is contained in:
parent
eac4d1866d
commit
58122441be
1 changed files with 2 additions and 0 deletions
|
@ -640,6 +640,8 @@ class backpack_api {
|
|||
$DB->delete_records('badge_external', array('backpackid' => $backpackid));
|
||||
$DB->delete_records('badge_backpack', array('userid' => $userid));
|
||||
$badgescache->delete($userid);
|
||||
$this->clear_system_user_session();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue