server,app: Add support for resetting your password with email

Instead of just username

Fixes #267
This commit is contained in:
Valentin Tolmer
2022-10-26 09:54:01 +02:00
committed by nitnelave
parent 234cb70b97
commit e81c87f288
5 changed files with 45 additions and 15 deletions

View File

@@ -268,7 +268,7 @@ impl HostService {
callback: Callback<Result<()>>,
) -> Result<FetchTask> {
call_server_empty_response_with_error_message(
&format!("/auth/reset/step1/{}", username),
&format!("/auth/reset/step1/{}", url_escape::encode_query(username)),
yew::format::Nothing,
callback,
"Could not initiate password reset",