mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Update validate.go
This commit is contained in:
parent
a3ced0d5a3
commit
f3aef111d7
|
|
@ -85,6 +85,7 @@ func ValidatePassword(password string, config PasswordConfig) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if config.RequireUppercase && !hasUppercase {
|
if config.RequireUppercase && !hasUppercase {
|
||||||
return ErrPasswordWeak
|
return ErrPasswordWeak
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue