Skip to content

Commit

Permalink
punbb may use a simple sha1 hash
Browse files Browse the repository at this point in the history
  • Loading branch information
linc committed Dec 8, 2013
1 parent 1b7e105 commit cd87fba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/core/class.passwordhash.php
Expand Up @@ -113,6 +113,8 @@ function CheckPassword($Password, $StoredHash, $Method = FALSE, $Username = NULL

if (md5($Password) == $StoredHash)
$Result = TRUE;
elseif (sha1($Password) == $StoredHash)
$Result = TRUE;
elseif (sha1($StoredSalt.sha1($Password)) == $StoredHash)
$Result = TRUE;
else
Expand Down

0 comments on commit cd87fba

Please sign in to comment.