more bug fixes

This commit is contained in:
JT Smith 2006-01-14 23:31:49 +00:00
parent 5a58632ee0
commit 07c7cf6098
2 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,7 @@ Get the instance of this object or create a new instance if none exists
sub getInstance {
my $session = shift;
#Get Auth Settings
my $authMethod = $session->user->profileField("authMethod") || $session->setting->get("authMethod");
my $authMethod = $session->user->get("authMethod") || $session->setting->get("authMethod");
$authMethod = $session->setting->get("authMethod") if($session->user->profileField("userId") eq '1');
$authMethod = $_[0] if($_[0] && isIn($_[0], @{$session->config->get("authMethods")}));
my $userId = $_[1];

View file

@ -622,7 +622,8 @@ A reference to the current session.
sub new {
my $class = shift;
bless {_session=>shift}, $class;
my $session = shift;
bless {_session=>$session}, $class;
}
#-------------------------------------------------------------------