diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2020-01-09 13:11:23 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-01-16 20:46:11 +0100 |
commit | 50477b4d242b12313d43d30dcfdb6d5dfde0344c (patch) | |
tree | b4c5faf364a8b1519aef7c5544e654c608f1421c /server/sonar-webserver-auth | |
parent | e7c8853b57a219ab992a6710591d229ae1b7963c (diff) | |
download | sonarqube-50477b4d242b12313d43d30dcfdb6d5dfde0344c.tar.gz sonarqube-50477b4d242b12313d43d30dcfdb6d5dfde0344c.zip |
SONAR-12893 Disable password check in QA to make it faster
Diffstat (limited to 'server/sonar-webserver-auth')
-rw-r--r-- | server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/CredentialsLocalAuthentication.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/CredentialsLocalAuthentication.java b/server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/CredentialsLocalAuthentication.java index 3fd0966fa5f..de8a469a7bc 100644 --- a/server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/CredentialsLocalAuthentication.java +++ b/server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/CredentialsLocalAuthentication.java @@ -185,6 +185,7 @@ public class CredentialsLocalAuthentication { private static final class BcryptFunction implements HashFunction { @Override public AuthenticationResult checkCredentials(UserDto user, String password) { + // This behavior is overridden in most of integration tests for performance reasons, any changes to BCrypt calls should be propagated to Byteman classes if (!BCrypt.checkpw(password, user.getCryptedPassword())) { return new AuthenticationResult(false, "wrong password"); } |