validation

package
v0.1.149 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePassword

func ValidatePassword(password string) error

ValidatePassword validates a password according to the following rules: - Minimum length: 8 characters - Must contain at least: 1 uppercase letter, 1 lowercase letter, 1 number, 1 special character - Special characters: !@#$%^&*()-_=+[]{};':"\\|,.<>/? Returns an error with a descriptive message if validation fails.

func ValidateUsername

func ValidateUsername(username string) error

ValidateUsername validates an admin username according to the following rules: - Minimum length: 8 characters - Allowed characters: alphanumeric, underscore (_), hyphen (-) Returns an error with a descriptive message if validation fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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