From: David Gageot Date: Mon, 10 Sep 2012 18:51:24 +0000 (+0200) Subject: SONAR-3776 Provide a WS Api to validate a user's login/password X-Git-Tag: 3.3~308 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dabffb94a652d0f79e6120bf679271407b9b3fe7;p=sonarqube.git SONAR-3776 Provide a WS Api to validate a user's login/password --- 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) }