gauth/user/creation/middleware
Functions
pub fn logging(name: String) -> Result(String, UserCreationError)
Logs to stdout when a user is about to be created
pub fn trim_name(
name: String,
) -> Result(String, UserCreationError)
Runs string.trim on the provided name
pub fn within_length(
min: Int,
max: Int,
) -> fn(String) -> Result(String, UserCreationError)
Returns a middleware that ensures the provided name is within the required bounds. If it is not then it will return an InvalidName error