PasswordValidationPolicy constructor
const
PasswordValidationPolicy({})
Creates a new PasswordValidationPolicy.
complexity The complexity of the password.
disallowCompromisedCredentials Disallow credentials that have been previously compromised by a public data breach.
disallowUsernameSubstring Disallow username as a part of the password.
enablePasswordPolicy Whether the password policy is enabled or not.
minLength Minimum number of characters allowed.
passwordChangeInterval Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
reuseInterval Number of previous passwords that cannot be reused.
Implementation
const PasswordValidationPolicy({
this.complexity,
this.disallowCompromisedCredentials,
this.disallowUsernameSubstring,
this.enablePasswordPolicy,
this.minLength,
this.passwordChangeInterval,
this.reuseInterval,
});