diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-12-10 18:17:41 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-12-10 18:17:41 +0100 |
commit | 2cb2c8f4c55e201dda7dca0f27d85059feeb6b5e (patch) | |
tree | 752c7a6b454329b4182bd45d1686a5e5343ed4f1 | |
parent | 853a0bbb6be3a08de83cf2365121d930f3aa2e19 (diff) | |
download | sonarqube-2cb2c8f4c55e201dda7dca0f27d85059feeb6b5e.tar.gz sonarqube-2cb2c8f4c55e201dda7dca0f27d85059feeb6b5e.zip |
Remove useless transaction when doing a local authentication
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb | 5 |
1 files changed, 0 insertions, 5 deletions
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 522f998e6ed..a09e9dbcc26 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 @@ -64,11 +64,6 @@ class PluginRealm result = nil if !username.blank? && !password.blank? 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.lang.System.currentTimeMillis - user.save(false) - end result = user if user && user.authenticated?(password) end result |