Skip to content

Commit

Permalink
[ISSUE alibaba#8107] 403 go to home page when modify user's password (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
onewe authored Apr 18, 2022
1 parent 1a1d315 commit dba1cf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion console-ui/src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit dba1cf5

Please sign in to comment.