[ISSUE #8107] 403 go to home page when modify user's password (#8114)

Close #8107
This commit is contained in:
onewe 2022-04-18 11:37:14 +08:00 committed by GitHub
parent 1a1d315cd1
commit dba1cf56f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,9 @@ const request = () => {
if ( if (
[401, 403].includes(status) && [401, 403].includes(status) &&
['unknown user!', 'token invalid!', 'token expired!'].includes(message) ['unknown user!', 'token invalid!', 'token expired!', 'authorization failed!'].includes(
message
)
) { ) {
goLogin(); goLogin();
} }