fix [ 1490336 ] all versions - deleting a user fails to existing sessions
This commit is contained in:
parent
ae9fc7c2c5
commit
6f397be60b
2 changed files with 6 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
|||
- fix [ 1489528 ] HTTP header contains invalid time-stamp
|
||||
- Added the quick() convenience method to WebGUI::Session.
|
||||
- fix [ 1487054 ] 6.99 Orphaning ads in AdSpace
|
||||
- fix [ 1490336 ] all versions - deleting a user fails to existing sessions
|
||||
|
||||
|
||||
6.99.0
|
||||
|
|
|
|||
|
|
@ -148,6 +148,11 @@ sub delete {
|
|||
require WebGUI::Operation::Auth;
|
||||
my $authMethod = WebGUI::Operation::Auth::getInstance($self->session,$self->authMethod,$self->{_userId});
|
||||
$authMethod->deleteParams($self->{_userId});
|
||||
my $rs = $self->session->db->read("select sessionId from userSession where userId=?",[$self->{_userId}]);
|
||||
while (my ($id) = $rs->array) {
|
||||
$self->session->db->write("delete from userSessionScratch where sessionId=?",[$id]);
|
||||
}
|
||||
$self->session->db->write("delete from userSession where userId=?",[$self->{_userId}]);
|
||||
$self->session->db->write("delete from userProfileData where userId=?",[$self->{_userId}]);
|
||||
$self->session->db->write("delete from users where userId=?",[$self->{_userId}]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue