summaryrefslogtreecommitdiff
path: root/users/app/controllers
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-09-26 11:38:35 -0700
committerjessib <jessib@riseup.net>2013-09-26 11:38:35 -0700
commitdba941539011f5e0634585e6c11a1c7f58110876 (patch)
tree75ffdf66bdfaf61be5a75beb3b39f03ba1c4cd77 /users/app/controllers
parent663d37eef8fae9f1d27d115e48a7136309eab960 (diff)
parent4f8414298750193b6de3daff08364ec745a6a761 (diff)
Merge pull request #90 from azul/feature/use-token-auth
Feature/use token auth
Diffstat (limited to 'users/app/controllers')
-rw-r--r--users/app/controllers/v1/sessions_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/app/controllers/v1/sessions_controller.rb b/users/app/controllers/v1/sessions_controller.rb
index 1b20a82..eb6c322 100644
--- a/users/app/controllers/v1/sessions_controller.rb
+++ b/users/app/controllers/v1/sessions_controller.rb
@@ -24,6 +24,7 @@ module V1
def update
authenticate!
@token = Token.create(:user_id => current_user.id)
+ session[:token] = @token.id
render :json => login_response
end