Skip to content

Commit

Permalink
Item1244: support phpBB2-style passwords
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/PhpBB3UsersContrib@3054 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Mar 13, 2009
1 parent 581c4e0 commit 2e8f73e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Foswiki/Users/PhpBB3UserMapping.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
---+ package Foswiki::Users::PhpBB3UserMapping
canonical user_id == id number of jos_users table
canonical user_id == id number of phpbb_users table
login == username column
Expand Down Expand Up @@ -632,6 +632,9 @@ sub checkPassword {
if (length($pw) == 34) {
# phpBB3-style is 34 bytes long
$pwhash = _phpbb_hash($password, $pw);
} else {
# phpBB2 password entry
$pwhash = Digest::MD5::md5_hex($password);
}

$this->{error} = undef;
Expand Down

0 comments on commit 2e8f73e

Please sign in to comment.