Skip to content

Commit

Permalink
Keys in options are allways symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphendyr committed Feb 20, 2013
1 parent 0441609 commit d166570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/pam.rb
Expand Up @@ -21,7 +21,7 @@ def request_phase

def callback_phase
rpam_opts = Hash.new
rpam_opts['service'] = options['service'] unless options['service'].nil?
rpam_opts[:service] = options[:service] unless options[:service].nil?

unless Rpam.auth(request['username'], request['password'], rpam_opts)
return fail!(:invalid_credentials)
Expand Down

0 comments on commit d166570

Please sign in to comment.