diff --git a/src/routes/session.rs b/src/routes/session.rs index 6c968720..4d79f6f4 100644 --- a/src/routes/session.rs +++ b/src/routes/session.rs @@ -3,7 +3,7 @@ use lettre::Transport; use rocket::http::ext::IntoOwned; use rocket::{ http::{uri::Uri, Cookie, Cookies, SameSite}, - request::{Form, LenientForm}, + request::LenientForm, response::{Flash, Redirect}, State, }; @@ -159,7 +159,7 @@ pub struct ResetForm { #[post("/password-reset", data = "
")] pub fn password_reset_request( mail: State<'_, Arc>>, - form: Form, + form: LenientForm, rockets: PlumeRocket, ) -> Ructe { if User::find_by_email(&*rockets.conn, &form.email).is_ok() { @@ -216,7 +216,7 @@ fn passwords_match(form: &NewPasswordForm) -> Result<(), ValidationError> { #[post("/password-reset/", data = "")] pub fn password_reset( token: String, - form: Form, + form: LenientForm, rockets: PlumeRocket, ) -> Result, Ructe> { form.validate()