pub fn validate_password(password: &str) -> Result<(), ValidationError>Expand description
Validates a password according to security requirements
§Arguments
password- The password to validate
§Returns
Returns Ok(()) if the password meets requirements, or a ValidationError if invalid.
§Password Requirements
- Minimum 8 characters
- Maximum 128 characters
- Cannot be empty or whitespace only
§Examples
use torii_core::validation::validate_password;
assert!(validate_password("securepassword123").is_ok());
assert!(validate_password("weak").is_err());