Skip to content

Commit

Permalink
Item9837: Don't require password check when PasswordManager is none
Browse files Browse the repository at this point in the history
- but only for TemplateLogin

git-svn-id: http://svn.foswiki.org/branches/Release01x01@9595 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Oct 18, 2010
1 parent bb99321 commit 8205020
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TopicUserMappingContrib/lib/Foswiki/Users/TopicUserMapping.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,13 @@ Returns 1 on success, undef on failure.

sub checkPassword {
my ( $this, $login, $pw ) = @_;

# If we don't have a PasswordManager and use TemplateLogin, always allow login
return 1
if ( $Foswiki::cfg{PasswordManager} eq 'none'
&& $Foswiki::cfg{LoginManager} eq
'Foswiki::LoginManager::TemplateLogin' );

return $this->{passwords}->checkPassword( $login, $pw );
}

Expand Down

0 comments on commit 8205020

Please sign in to comment.