Commit 77d16ff3 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

fix Login

parent 734bdd12
......@@ -43,7 +43,7 @@ module Dspace
end
def login(email, password)
@access_token = resource(:authentication).login(email, password)
@access_token = resource(:authentication).login(email: email, password: password)
end
def logout
......
......@@ -8,7 +8,7 @@ module Dspace
default_handler { |response| raise StandardError, "#{response.inspect}" }
action :login, 'POST /rest/login' do
body { |email, password| {email: email, password: password}.to_query }
query_keys :email, :password
handler(200, 201) { |response| response.inspect }
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment