diff options
author | crupest <crupest@outlook.com> | 2021-02-13 14:51:28 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-13 14:51:28 +0800 |
commit | 1f70c65eb0d20eb070b72d4e67966c1f7b79c02a (patch) | |
tree | 71afeb77fa370e5dfeb5cf0d02685d0bc87bb627 /FrontEnd/src/app/views/settings/index.tsx | |
parent | 6159c8fd8e4d9ded22b9d5dd1772b1529a1d513a (diff) | |
download | timeline-1f70c65eb0d20eb070b72d4e67966c1f7b79c02a.tar.gz timeline-1f70c65eb0d20eb070b72d4e67966c1f7b79c02a.tar.bz2 timeline-1f70c65eb0d20eb070b72d4e67966c1f7b79c02a.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/settings/index.tsx')
-rw-r--r-- | FrontEnd/src/app/views/settings/index.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/FrontEnd/src/app/views/settings/index.tsx b/FrontEnd/src/app/views/settings/index.tsx index 0a85df83..ccba59b7 100644 --- a/FrontEnd/src/app/views/settings/index.tsx +++ b/FrontEnd/src/app/views/settings/index.tsx @@ -53,8 +53,7 @@ const ChangePasswordDialog: React.FC<ChangePasswordDialogProps> = (props) => { return result; }} onProcess={async ([oldPassword, newPassword]) => { - await userService.changePassword(oldPassword, newPassword).toPromise(); - await userService.logout(); + await userService.changePassword(oldPassword, newPassword); setRedirect(true); }} close={() => { |