diff options
author | azul <azul@riseup.net> | 2017-04-20 14:11:42 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-04-20 14:11:42 +0000 |
commit | a5ba112d8c6bc068de9c499600452b77d40d7a8b (patch) | |
tree | 59512c3e0f45b680c164f2f097e2d34d5dde23fb /app/controllers | |
parent | 92e41fa177c924aee2146987be40c1f3d8af4872 (diff) | |
parent | 653f92e6ac5c0b61e8113665735d929426deb714 (diff) |
Merge branch 'bugfix/8784-import-pgp-key' into 'master'
fix: set token in forms correctly
Closes #8784
See merge request !37
Diffstat (limited to 'app/controllers')
-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 |