From dabffb94a652d0f79e6120bf679271407b9b3fe7 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 10 Sep 2012 20:51:24 +0200 Subject: [PATCH] SONAR-3776 Provide a WS Api to validate a user's login/password --- .../WEB-INF/app/controllers/api/authentication_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/authentication_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/authentication_controller.rb index 9040b8e5030..92d1c85d95c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/authentication_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/authentication_controller.rb @@ -30,7 +30,10 @@ class Api::AuthenticationController < Api::ApiController def validate hash={:valid => valid?} + # make sure no authentication information is left by + # this validation reset_session + cookies[:auth_token] respond_to do |format| format.json { render :json => jsonp(hash) } -- 2.39.5