]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4950 update the users.updated_at in order to block other sessions
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 4 Nov 2014 16:30:16 +0000 (17:30 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 4 Nov 2014 16:30:16 +0000 (17:30 +0100)
server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb

index 61b266fc66df4e7435bfeac0b764af8527f3faec..3e49975583adf7bfb802b9e28139c4b5a7d15c6e 100644 (file)
@@ -146,6 +146,9 @@ class PluginRealm
           user.name = details.getName()
           user.email = details.getEmail()
         end
+
+        # Force the update of updated_ad in order to execute an SQL update to block other session
+        user.updated_at = Time.now
       end
       if @save_password
         user.password = password