fix: tighten password and surface persistence errors
This commit is contained in:
@@ -138,8 +138,15 @@ func TestValidatePasswordStrength(t *testing.T) {
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "valid_weak_password_non_strict",
|
||||
password: "Abcd1234",
|
||||
name: "boundary_password_requires_three_character_classes",
|
||||
password: "abcd1234",
|
||||
minLength: 8,
|
||||
strict: false,
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "longer_password_allows_two_character_classes",
|
||||
password: "abcdefgh1234",
|
||||
minLength: 8,
|
||||
strict: false,
|
||||
wantErr: false,
|
||||
|
||||
Reference in New Issue
Block a user