From: Sébastien Lesaint Date: Wed, 14 Dec 2016 14:52:24 +0000 (+0100) Subject: SONAR-8416 fix login failure log on logout from the UI X-Git-Tag: 6.2.1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e0049ae28caf5ee6998af450404e23f34a0ef47;p=sonarqube.git SONAR-8416 fix login failure log on logout from the UI --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb index 4a302c34573..adc4bf52220 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb @@ -34,7 +34,11 @@ class SessionsController < ApplicationController end cookies.delete 'JWT-SESSION' cookies.delete 'XSRF-TOKEN' - redirect_to(home_path) + if Api::Utils.java_facade.getConfigurationValue('sonar.forceAuthentication')=='true' + redirect_to(home_path + 'sessions/new') + else + redirect_to(home_path) + end end def new