Skip to content

Commit

Permalink
Merge pull request #16 from rknoll/patch-1
Browse files Browse the repository at this point in the history
Fix Hash access in credential_login
  • Loading branch information
dzdidi authored Jul 28, 2016
2 parents 55f4344 + 92e6df2 commit 257619e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/authentification/api_call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def resend_verification()
def credential_login(username, password, device_name = nil, device_type = nil, device_udid = nil, scope = nil)
options = { grant_type: "password", username: username, password: password }

options.device_name = device_name if (device_name)
options.device_type = device_type if (device_type)
options.device_udid = device_udid if (device_udid)
options.scope = scope if (scope)
options[:device_name] = device_name if (device_name)
options[:device_type] = device_type if (device_type)
options[:device_udid] = device_udid if (device_udid)
options[:scope] = scope if (scope)

query_api "/auth/token", options
end
Expand Down

0 comments on commit 257619e

Please sign in to comment.