Skip to main content

create_admin

Function create_admin 

Source
pub async fn create_admin(
    email: &str,
    password: &str,
    role: &str,
) -> Result<(), CoreError>
Expand description

Convenience for seeding: insert an admin user (bcrypt-hashing the password).