pub fn check_user_password(password: Option<&str>) -> Result<(), String>
Ok for no password (a token-only user) and for one of at least MIN_USER_PASSWORD_CHARS.
Ok
MIN_USER_PASSWORD_CHARS