Skip to content

Commit

Permalink
Merge pull request #1 from colincameron/fix-wordpress-check
Browse files Browse the repository at this point in the history
Skip Wordpress checking unless hash starts with '$P$'
  • Loading branch information
colincameron authored Jan 23, 2018
2 parents 5bd2804 + 526cb1d commit b54e525
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def hash(pw)
end

def check(pw, hash)
return false unless hash.start_with?('$P$')
crypt(pw, hash) == hash
end

Expand Down

0 comments on commit b54e525

Please sign in to comment.