app: Implement the first screen of password reset

This commit is contained in:
Valentin Tolmer
2021-11-22 23:04:09 +01:00
committed by nitnelave
parent 789c8f367e
commit 9fb4afcf60
6 changed files with 218 additions and 39 deletions

View File

@@ -232,4 +232,16 @@ impl HostService {
"Could not logout",
)
}
pub fn reset_password_step1(
username: &str,
callback: Callback<Result<()>>,
) -> Result<FetchTask> {
call_server_empty_response_with_error_message(
&format!("/auth/reset/step1/{}", username),
yew::format::Nothing,
callback,
"Could not logout",
)
}
}