Recipe edit (WIP): forms to edit groups, steps and ingredients
This commit is contained in:
parent
dd05a673d9
commit
07b7ff425e
25 changed files with 881 additions and 203 deletions
|
|
@ -22,7 +22,7 @@ use crate::{
|
|||
utils, AppState,
|
||||
};
|
||||
|
||||
//// SIGN UP /////
|
||||
/// SIGN UP ///
|
||||
|
||||
#[debug_handler]
|
||||
pub async fn sign_up_get(
|
||||
|
|
@ -207,7 +207,7 @@ pub async fn sign_up_validation(
|
|||
}
|
||||
}
|
||||
|
||||
///// SIGN IN /////
|
||||
/// SIGN IN ///
|
||||
|
||||
#[debug_handler]
|
||||
pub async fn sign_in_get(
|
||||
|
|
@ -271,7 +271,7 @@ pub async fn sign_in_post(
|
|||
}
|
||||
}
|
||||
|
||||
///// SIGN OUT /////
|
||||
/// SIGN OUT ///
|
||||
|
||||
#[debug_handler]
|
||||
pub async fn sign_out(
|
||||
|
|
@ -287,7 +287,7 @@ pub async fn sign_out(
|
|||
Ok((jar, Redirect::to("/")))
|
||||
}
|
||||
|
||||
///// RESET PASSWORD /////
|
||||
/// RESET PASSWORD ///
|
||||
|
||||
#[debug_handler]
|
||||
pub async fn ask_reset_password_get(
|
||||
|
|
@ -510,7 +510,7 @@ pub async fn reset_password_post(
|
|||
}
|
||||
}
|
||||
|
||||
///// EDIT PROFILE /////
|
||||
/// EDIT PROFILE ///
|
||||
|
||||
#[debug_handler]
|
||||
pub async fn edit_user_get(Extension(user): Extension<Option<model::User>>) -> Response {
|
||||
|
|
@ -614,7 +614,7 @@ pub async fn edit_user_post(
|
|||
match connection
|
||||
.update_user(
|
||||
user.id,
|
||||
Some(&email_trimmed),
|
||||
Some(email_trimmed),
|
||||
Some(&form_data.name),
|
||||
new_password,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue