Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Fix issue where example server was passing username as a symbol due t…
Browse files Browse the repository at this point in the history
…o sim DB
  • Loading branch information
grempe committed May 16, 2016
1 parent 0ce80ce commit 4aa4783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

user_verifiers = users.map do |username, password|
{ username => SIRP::Verifier.new(prime_length).generate_userauth(username, password) }
{ username => SIRP::Verifier.new(prime_length).generate_userauth(username.to_s, password) }
end

user_verifiers.each { |h| users.update h }
Expand Down

0 comments on commit 4aa4783

Please sign in to comment.