diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-28 09:48:12 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-28 10:05:44 +0200 |
commit | 939fb2453e19774469729f2ced0de7daee67bbb7 (patch) | |
tree | fe03f9b89d9cd5e73ad548dc443d6b5b603b43ce /server/sonar-web | |
parent | 913b1d64dea90658f0e2b2c44395af17aeb03fb3 (diff) | |
download | sonarqube-939fb2453e19774469729f2ced0de7daee67bbb7.tar.gz sonarqube-939fb2453e19774469729f2ced0de7daee67bbb7.zip |
SONAR-6726 Authentication freeze with LDAP and Dev Cockpit
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb | 7 |
1 files changed, 5 insertions, 2 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 bec69b1aa70..cc4cb53f4eb 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 @@ -160,9 +160,12 @@ class PluginRealm user.save(false) synchronize_groups(user) - user.notify_creation_handlers - user + # Note that validation disabled + user.save(false) end + # Must be outside the transaction in order to not have a lock on the users table : http://jira.sonarsource.com/browse/SONAR-6726 + user.notify_creation_handlers + Internal.users_api.index() # Return user |