mirror of https://github.com/halo-dev/halo-admin
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 https://github.com/halo-dev/halo/issues/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 端登录请求异常的提示 ```pull/861/head^2
parent
fe353a472f
commit
1ded5be45d
Loading…
Reference in new issue