From 853a0bbb6be3a08de83cf2365121d930f3aa2e19 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 10 Dec 2014 18:07:06 +0100 Subject: [PATCH] SONAR-5918 Fix user.updated_at value when doing a local auth --- .../src/main/webapp/WEB-INF/lib/need_authentication.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb b/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb index 22da5fdba07..522f998e6ed 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb @@ -66,7 +66,7 @@ class PluginRealm user = User.find_active_by_login(username) # SONAR-4950 Use a transaction to prevent multiple insertion of same groups User.transaction do - user.updated_at = Java::JavaLang::System.java_class.currentTimeMillis() + user.updated_at = java.lang.System.currentTimeMillis user.save(false) end result = user if user && user.authenticated?(password) -- 2.39.5