From dba1cf56f0a2957de979dc890fc9378eeb384c61 Mon Sep 17 00:00:00 2001 From: onewe Date: Mon, 18 Apr 2022 11:37:14 +0800 Subject: [PATCH] [ISSUE #8107] 403 go to home page when modify user's password (#8114) Close #8107 --- console-ui/src/utils/request.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/console-ui/src/utils/request.js b/console-ui/src/utils/request.js index 565b51ecd..6c6e355fb 100644 --- a/console-ui/src/utils/request.js +++ b/console-ui/src/utils/request.js @@ -89,7 +89,9 @@ const request = () => { if ( [401, 403].includes(status) && - ['unknown user!', 'token invalid!', 'token expired!'].includes(message) + ['unknown user!', 'token invalid!', 'token expired!', 'authorization failed!'].includes( + message + ) ) { goLogin(); }