Commit f07b9a945712bc29fb1eeb2c25667c1e0e775a45

Authored by Leandro Santos
1 parent 8d06817d

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