Commit 674fe0a56d3d9bcf811c1ee6994857eebe247d53

Authored by Leandro Santos
Committed by Rodrigo Souto
1 parent be1b2334

put login as post action

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/api/session.rb
... ... @@ -10,7 +10,7 @@ module API
10 10 #
11 11 # Example Request:
12 12 # POST /login?login=some&password=pass
13   - get "/login" do
  13 + post "/login" do
14 14 user ||= User.authenticate(params[:login], params[:password], environment)
15 15  
16 16 return unauthorized! unless user
... ...