-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
管理后台token失效不自动跳转登录页 #3428
Labels
area/Nacos console
Related to Nacos consle
contribution welcome
kind/bug
Category issues or prs related to bug.
Comments
KomachiSion
added
area/Nacos console
Related to Nacos consle
kind/research
kind/bug
Category issues or prs related to bug.
contribution welcome
labels
Jul 23, 2020
@i will solve it@ |
senekis316
added a commit
to senekis316/nacos
that referenced
this issue
Jul 26, 2020
5 tasks
lancediarmuid
pushed a commit
to lancediarmuid/nacos
that referenced
this issue
Jul 27, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/Nacos console
Related to Nacos consle
contribution welcome
kind/bug
Category issues or prs related to bug.
管理端token失效不自动跳转登录页
Type: bug report
版本:1.3.1
经查代码发现是前端统一处理 403 forbidden 的时候一个bug:
后端代码处理login时抛异常,message是"token invalid!",前端处理403的时候判断的是"token invalid"。
综上:前端判断403的时候少了个"!"。
后端代码:com.alibaba.nacos.console.security.nacos.NacosAuthManager#login 第74行
前端代码:nacos\console\src\main\resources\static\console-fe\src\globalLib.js 第531行
nacos\console\src\main\resources\static\console-fe\src\utils\request.js 第88行
The text was updated successfully, but these errors were encountered: