server,app: Add support for resetting your password with email
Instead of just username Fixes #267
This commit is contained in:
committed by
nitnelave
parent
234cb70b97
commit
e81c87f288
@@ -97,7 +97,7 @@ impl Component for ResetPasswordStep1Form {
|
||||
class_valid="has-success"
|
||||
form=&self.form
|
||||
field_name="username"
|
||||
placeholder="Username"
|
||||
placeholder="Username or email"
|
||||
autocomplete="username"
|
||||
oninput=self.common.callback(|_| Msg::Update) />
|
||||
</div>
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user