From 9e0049ae28caf5ee6998af450404e23f34a0ef47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Wed, 14 Dec 2016 15:52:24 +0100 Subject: [PATCH] SONAR-8416 fix login failure log on logout from the UI --- .../webapp/WEB-INF/app/controllers/sessions_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5