Nice. It even works.
Nice. It even works.
...I ended up working on the invite page for some reason.
Hosts view page resurrected. Going to add profile update, host update, delete & create, and then OJF is almost ready to deploy as a demo, again.
pub async fn update(
State(ctx): State<Arc<Context>>,
Extension(account): Extension<Account>,
Form(update): Form<ProfileUpdate>,
) -> Result<Redirect, Error> {
let _ = account
.update(&ctx.db, update.email, update.password)
.await
.map_err(|_| Error::database())?;
Ok(Redirect::to("/me/"))
}
I'm not sure why I was delaying this so much. Middleware take care of everything. By the time control reaches the handler, everything is neatly verified, and all I need to do is hit the database and redirect.
Is it deploy time?
Huh. The initial SQL migration fails to run on Quickbeam. Huh.
Oh, yeah, right. I needed to drop the database and the types and whatnot first.