pub fn init_default_users() {
    let rt = tokio::runtime::Runtime::new().expect("could not spawn runtime");
    tokio::task::LocalSet::new().block_on(&rt, async {
        // also initialize the duration in `pretend_password_processing`
        pretend_password_processing().await;
        store_user("user@localhost", "userpassword", Role::User).await.expect("could not store default user");
        store_user("admin@localhost", "adminpassword", Role::Admin).await.expect("could not store default admin");
    });
}
/// Initialize a user and an admin account. Panics if it cannot run.
Initialize a user and an admin account. Panics if it cannot run.
Initialize a user and an admin account . Panics if it cannot run .
pub fn init_default_users() {
    let rt = tokio::runtime::Runtime::new().expect("could not spawn runtime");
    tokio::task::LocalSet::new().block_on(&rt, async {
        // also initialize the duration in `pretend_password_processing`
        pretend_password_processing().await;
        store_user("user@localhost", "userpassword", Role::User).await.expect("could not store default user");
        store_user("admin@localhost", "adminpassword", Role::Admin).await.expect("could not store default admin");
    });
}
pub fn init_default_users ( ) { let rt = tokio :: runtime :: Runtime :: new ( ) . expect ( " " ) ; tokio :: task :: LocalSet :: new ( ) . block_on ( & rt , async { // also initialize the duration in `pretend_password_processing` pretend_password_processing ( ) . await ; store_user ( " " , " " , Role :: User ) . await . expect ( " " ) ; store_user ( " " , " " , Role :: Admin ) . await . expect ( " " ) ; } ) ; }
Initialize a user and an admin account.
Initialize a user and an admin account .