increase req min unique pw chars from 5 to 6
This commit is contained in:
parent
a6dd1a2cd4
commit
9b263a0559
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue