]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3776 Provide a WS Api to validate a user's login/password
authorDavid Gageot <david@gageot.net>
Mon, 10 Sep 2012 18:51:24 +0000 (20:51 +0200)
committerDavid Gageot <david@gageot.net>
Mon, 10 Sep 2012 18:51:24 +0000 (20:51 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/api/authentication_controller.rb

index 9040b8e503066f626d848051b90e6b865d3c052b..92d1c85d95c34550ad98f87e0d59acdfcee88577 100644 (file)
@@ -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) }