Add a way to reset password (WIP)
This commit is contained in:
parent
ebdcb6a90a
commit
5d343c273f
8 changed files with 265 additions and 12 deletions
|
|
@ -87,6 +87,11 @@ async fn main() {
|
|||
get(services::sign_in_get).post(services::sign_in_post),
|
||||
)
|
||||
.route("/signout", get(services::sign_out))
|
||||
.route(
|
||||
"/ask_reset_password",
|
||||
get(services::ask_reset_password_get).post(services::ask_reset_password_post),
|
||||
)
|
||||
.route("/reset_password", get(services::reset_password))
|
||||
.layer(TraceLayer::new_for_http())
|
||||
.route_layer(middleware::from_fn_with_state(
|
||||
state.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue