Versions in this module Expand all Collapse all v2 v2.3.1 Jan 29, 2026 Changes in this version + type Policy struct + AllowWeakPassword bool + MaxRepeatedChars int + MaxSequentialLen int + PasswordExpireDays int + PasswordHistorySize int + PasswordMinLength int + PasswordRequireDigit bool + PasswordRequireLower bool + PasswordRequireSpecial bool + PasswordRequireUpper bool + PasswordReuseLimit int + PreventKeyboardPattern bool + PreventSequentialChars bool + func (p *Policy) GetPasswordStrength(password string) int + func (p *Policy) ValidatePassword(password string) error v2.3.0 Dec 9, 2025