Skip to content

Commit

Permalink
remove code duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed Sep 14, 2015
1 parent 2e051a6 commit 40a30ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/htauth/digest_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def calc_digest(password)

# Public: Check if the given password is the password of this entry.
def authenticated?(check_password)
hd = ::Digest::MD5.hexdigest("#{user}:#{realm}:#{check_password}")
hd = calc_digest(check_password)
return hd == digest
end

Expand Down

0 comments on commit 40a30ff

Please sign in to comment.