Skip to main content

RegisterableAuthUser

Trait RegisterableAuthUser 

Source
pub trait RegisterableAuthUser: AuthUser + HasSecurePassword {
    // Required method
    fn register(
        db: &DatabaseConnection,
        email: String,
        password_digest: String,
    ) -> impl Future<Output = Result<Self>> + Send;
}
Expand description

Persist a newly registered user from email + bcrypt digest.

Required by the default crate::controllers::AuthRegistrations controller when using auth_routes!(User) without a custom registrations controller.

Required Methods§

Source

fn register( db: &DatabaseConnection, email: String, password_digest: String, ) -> impl Future<Output = Result<Self>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§