Skip to main content

register_account

Function register_account 

Source
pub fn register_account(
    adapter: &dyn DatabaseOperations,
    config: &DbBackendConfig,
    schema: &AppSchema,
    username: &str,
    email: &str,
    password_hash: &str,
) -> Result<i64, DatabaseError>
Expand description

Creates a customer account and its profile in one configured-backend transaction.