This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: improve error message of login (#851)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 改进登录异常的提示信息,目前大致分为三种: 1. 用户名或密码错误 2. 跨域或网络请求异常 3. CSRF Token 失效 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#3291 #### Screenshots: <img width="1402" alt="image" src="https://user-images.githubusercontent.com/21301288/218319203-19517ab7-7740-41f9-8579-f10a60aa6e51.png"> <img width="1673" alt="image" src="https://user-images.githubusercontent.com/21301288/218319221-2fc332f4-4de7-4417-a277-0c4a396d6389.png"> #### Special notes for your reviewer: 测试方式: 1. 进入浏览器控制台清理 Cookie,以测试 CSRF Token 失效的情况。 2. 使用 3000 端口访问 Console,以测试跨域的情况。 3. 观察以上两种情况的登录请求异常提示信息是否符合要求。 #### Does this PR introduce a user-facing change? ```release-note 优化 Console 端登录请求异常的提示 ```
- Loading branch information
1ded5be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ui – ./
halo-admin-ui.vercel.app
ui-halo-dev.vercel.app
ui-git-main-halo-dev.vercel.app