Expand description
validatable module — email format + password length checks on registration
(the Devise validatable analogue). Gated at runtime by auth.modules.
Functions§
- validate_
email - A conservative email format check (
local@domain, a dot in the domain, no whitespace). Returns aAuthError::Validationon failure. - validate_
password_ length - Enforce a minimum password length.
- validate_
registration - Validate an email/password pair for registration when the
validatablemodule is enabled. A no-op when auth state isn’t initialised (unit tests) or the module is disabled, so callers can invoke it unconditionally.