Permalink
Browse files

Update example/protectedlobster.rb

More secure example
  • Loading branch information...
1 parent df06eb2 commit b8168b57a0b139272aedf752e6d162b9cbad8361 @snyff committed Feb 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 example/protectedlobster.rb
@@ -4,7 +4,7 @@
lobster = Rack::Lobster.new
protected_lobster = Rack::Auth::Basic.new(lobster) do |username, password|
- 'secret' == password
+ Rack::Utils.secure_compare('secret', password)
end
protected_lobster.realm = 'Lobster 2.0'

0 comments on commit b8168b5

Please sign in to comment.