Skip to main content

create_user

Function create_user 

Source
pub fn create_user(
    conn: &Connection,
    login: &str,
    name: &str,
    email: &str,
    password: &str,
    is_admin: bool,
) -> Result<User, String>
Expand description

Create a new user in the database.

ยงErrors

Returns a database error if the insert fails.