From 1f70c65eb0d20eb070b72d4e67966c1f7b79c02a Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sat, 13 Feb 2021 14:51:28 +0800
Subject: ...

---
 FrontEnd/src/app/views/settings/index.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'FrontEnd/src/app/views/settings/index.tsx')

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={() => {
-- 
cgit v1.2.3

