validation

package
v2.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PasswordPolicyBasic    = "basic"
	PasswordPolicyStandard = "standard"
	PasswordPolicyStrong   = "strong"
)

Variables

This section is empty.

Functions

func IsValidUserEmail

func IsValidUserEmail(email string) bool

func ValidateCredentialTargetChange added in v2.5.0

func ValidateCredentialTargetChange(
	targetName string,
	currentTarget string,
	nextTarget *string,
	normalize func(string) string,
	storedCredentials map[string]bool,
	updatedCredentials map[string]bool,
) error

ValidateCredentialTargetChange prevents stored credentials from being reused against a changed target unless the update explicitly handles them.

func ValidatePasswordPolicy added in v2.7.0

func ValidatePasswordPolicy(password, policy string) error

ValidatePasswordPolicy checks a password against the named policy tier. Unknown policy values are treated as strong so a corrupted setting fails closed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL