mirror of https://github.com/jenkinsci/jenkins.git
[JENKINS-74858] resolved some comments
This commit is contained in:
parent
afe7d250b8
commit
7cfca7066e
|
|
@ -839,10 +839,8 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
|
|||
throw new FormException("Please confirm the password by typing it twice", "user.password2");
|
||||
}
|
||||
|
||||
if (FIPS140.useCompliantAlgorithms()) {
|
||||
if (pwd.length()< FIPS_PASSWORD_LENGTH) {
|
||||
throw new FormException(Messages.HudsonPrivateSecurityRealm_CreateAccount_FIPS_PasswordLengthInvalid(), "user.password1");
|
||||
}
|
||||
if (FIPS140.useCompliantAlgorithms() && pwd.length()< FIPS_PASSWORD_LENGTH) {
|
||||
throw new FormException(Messages.HudsonPrivateSecurityRealm_CreateAccount_FIPS_PasswordLengthInvalid(), "user.password1");
|
||||
}
|
||||
|
||||
// will be null if it wasn't encrypted
|
||||
|
|
|
|||
|
|
@ -25,8 +25,12 @@
|
|||
package hudson.security;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
import static org.hamcrest.Matchers.hasItem;
|
||||
import static org.hamcrest.Matchers.is;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
import static org.hamcrest.Matchers.startsWith;
|
||||
import static org.junit.Assert.assertThrows;
|
||||
|
||||
import hudson.logging.LogRecorder;
|
||||
import hudson.logging.LogRecorderManager;
|
||||
import hudson.model.User;
|
||||
|
|
|
|||
Loading…
Reference in New Issue