diff options
Diffstat (limited to 'app/controllers/api/sessions_controller.rb')
-rw-r--r-- | app/controllers/api/sessions_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/sessions_controller.rb b/app/controllers/api/sessions_controller.rb index 178f86e..3883115 100644 --- a/app/controllers/api/sessions_controller.rb +++ b/app/controllers/api/sessions_controller.rb @@ -25,7 +25,7 @@ module Api def update authenticate! @token = Token.create(:user_id => current_user.id) - session[:token] = @token.id + session[:token] = @token.to_s render :json => login_response end |