fractal::utils::matrix

Function validate_password

Source
pub fn validate_password(password: &str) -> PasswordValidity
Expand description

Validate a password according to the Matrix specification.

A password should include a lower-case letter, an upper-case letter, a number and a symbol and be at a minimum 8 characters in length.

See: https://spec.matrix.org/v1.1/client-server-api/#notes-on-password-management