Skip to content

Commit

Permalink
Item1244: twiki -> foswiki
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/PhpBB3UsersContrib@2982 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Mar 11, 2009
1 parent 8eedf54 commit 3b7eef6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Foswiki/LoginManager/PhpBB3Login.pm
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ add phpBB3 cookie to the session management

sub loadSession {
my $this = shift;
my $twiki = $this->{twiki};
my $query = $twiki->{cgiQuery};
my $foswiki = $this->{foswiki};
my $query = $foswiki->{cgiQuery};

ASSERT( $this->isa('Foswiki::LoginManager::PhpBB3Login') ) if DEBUG;

Expand All @@ -64,15 +64,15 @@ sub loadSession {
if ( defined( $cookies{'usercookie[username]'} ) ) {
my $id = $cookies{'usercookie[username]'}->value;
my $password = $cookies{'usercookie[password]'}->value;
my $user = $twiki->{users}->getCanonicalUserID( $id, undef, 1 );
my $user = $foswiki->{users}->getCanonicalUserID( $id, undef, 1 );

#print STDERR "$id, $password, $user";
my $passwordHandler = $twiki->{users}->{passwords};
my $passwordHandler = $foswiki->{users}->{passwords};

#return $passwordHandler->checkPassword($this->{login}, $password);

if ( defined($user)
&& $twiki->{users}->checkPassword( $user->login(), $password, 1 ) )
&& $foswiki->{users}->checkPassword( $user->login(), $password, 1 ) )
{
$authUser = $id;
}
Expand Down

0 comments on commit 3b7eef6

Please sign in to comment.