Commit a723bef4f293b316ba2c168ac4694311ff553ce8

Authored by Leandro Santos
Committed by Rodrigo Souto
1 parent becb680b

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
... ...