diff options
author | bobzel <zzzman@gmail.com> | 2025-03-06 16:17:47 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-03-06 16:17:47 -0500 |
commit | 5ad858090f3006631062877d90120e3cc505fada (patch) | |
tree | 9f87a8e1e7098a1025f6f4aac332dbc854db5be3 /src/client/util/SettingsManager.tsx | |
parent | 9c2a7c14fd9d0e44609aab30c6323583162009db (diff) | |
parent | adaa107aac8558fa6f46e6ba1263c650c212d506 (diff) |
Merge branch 'master' into aarav_edit
Diffstat (limited to 'src/client/util/SettingsManager.tsx')
-rw-r--r-- | src/client/util/SettingsManager.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/SettingsManager.tsx b/src/client/util/SettingsManager.tsx index 5d041f7b4..6ea242fc3 100644 --- a/src/client/util/SettingsManager.tsx +++ b/src/client/util/SettingsManager.tsx @@ -598,7 +598,8 @@ export class SettingsManager extends React.Component<object> { }); } else { const passwordBundle = { curr_pass: this._curr_password, new_pass: this._new_password, new_confirm: this._new_confirm }; - const { error } = await Networking.PostToServer('/internalResetPassword', passwordBundle); + const reset = await Networking.PostToServer('/internalResetPassword', passwordBundle); + const { error } = reset as { error: { msg: string }[] }; runInAction(() => { this._passwordResultText = error ? 'Error: ' + error[0].msg + '...' : 'Password successfully updated!'; }); |