increase req min unique pw chars from 5 to 6

This commit is contained in:
Jeff Atwood 2017-02-16 17:06:19 -08:00
parent a6dd1a2cd4
commit 9b263a0559
2 changed files with 3 additions and 3 deletions

View File

@ -354,7 +354,7 @@ users:
default: 15
min: 1
password_unique_characters:
default: 5
default: 6
min: 1
block_common_passwords: true
enforce_global_nicknames:

View File

@ -100,13 +100,13 @@ describe PasswordValidator do
end
it "doesn't add an error when there are enough unique characters" do
@password = "aaaaa54322"
@password = "aaaaa12345"
validate
expect(record.errors[:password]).not_to be_present
end
it "counts capital letters as different" do
@password = "aaaAaa543A"
@password = "aaaAaa1234"
validate
expect(record.errors[:password]).not_to be_present
end