more session related bug fixes
This commit is contained in:
parent
89a6e4efdb
commit
b0d10ec7f0
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ Get the instance of this object or create a new instance if none exists
|
||||||
sub getInstance {
|
sub getInstance {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
#Get Auth Settings
|
#Get Auth Settings
|
||||||
my $authMethod = $session->user->get("authMethod") || $session->setting->get("authMethod");
|
my $authMethod = $session->user->authMethod || $session->setting->get("authMethod");
|
||||||
$authMethod = $session->setting->get("authMethod") if($session->user->profileField("userId") eq '1');
|
$authMethod = $session->setting->get("authMethod") if($session->user->profileField("userId") eq '1');
|
||||||
$authMethod = $_[0] if($_[0] && isIn($_[0], @{$session->config->get("authMethods")}));
|
$authMethod = $_[0] if($_[0] && isIn($_[0], @{$session->config->get("authMethods")}));
|
||||||
my $userId = $_[1];
|
my $userId = $_[1];
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ Deletes this user.
|
||||||
sub delete {
|
sub delete {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->uncache;
|
$self->uncache;
|
||||||
foreach my $groupId (@{$self->session->user->getGroups($self->userId)}) {
|
foreach my $groupId (@{$self->getGroups($self->userId)}) {
|
||||||
WebGUI::Group->new($self->session,$groupId)->deleteUsers([$self->userId]);
|
WebGUI::Group->new($self->session,$groupId)->deleteUsers([$self->userId]);
|
||||||
}
|
}
|
||||||
$self->session->db->write("delete from messageLog where userId=".$self->session->db->quote($self->{_userId}));
|
$self->session->db->write("delete from messageLog where userId=".$self->session->db->quote($self->{_userId}));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue