summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-07-11 12:11:49 +0200
committerAzul <azul@leap.se>2013-07-17 10:47:14 +0200
commitbae22682888c6e656a7c032fe819f4b662ee84ea (patch)
tree8bd316baec192c976cdd96d45d86584baf72684f /users
parente335e807bf4615c5d0bf4ff9479f3d5a7ca523d5 (diff)
fix account flow integration test
not really sure what to do if the second step of srp auth is repeated.
Diffstat (limited to 'users')
-rw-r--r--users/app/controllers/v1/sessions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/controllers/v1/sessions_controller.rb b/users/app/controllers/v1/sessions_controller.rb
index e3459d6..295c327 100644
--- a/users/app/controllers/v1/sessions_controller.rb
+++ b/users/app/controllers/v1/sessions_controller.rb
@@ -35,7 +35,7 @@ module V1
protected
def login_response
- handshake = session.delete(:handshake)
+ handshake = session.delete(:handshake) || {}
handshake.to_hash.merge(:id => current_user.id, :token => @token.id)
end