feat: password auth

This commit is contained in:
juancwu 2026-02-07 14:12:22 -05:00
commit 7443547593
No known key found for this signature in database
7 changed files with 317 additions and 9 deletions

View file

@ -0,0 +1,15 @@
package validation
import "errors"
func ValidatePassword(password string) error {
if password == "" {
return errors.New("password is required")
}
if len(password) < 12 {
return errors.New("password must be at least 12 characters")
}
return nil
}