Skip to content
Browse files

use Hex digest instead of binary

  • Loading branch information...
1 parent 16279f1 commit adb098fa85022ab219ecf273d3d043e456ab93ef @niklasb committed May 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ircbot/api.rb
View
2 lib/ircbot/api.rb
@@ -55,7 +55,7 @@ def initialize(bot, db)
@webhooks = db[:webhooks]
init_auth "Web API" do |user, password|
- hash = Digest::SHA1.digest(password)
+ hash = Digest::SHA1.hexdigest(password)
@api_users.where(user: user, password: hash).first
end
end

0 comments on commit adb098f

Please sign in to comment.
Something went wrong with that request. Please try again.