Skip to content
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

👑 [需求] 登录逻辑优化 #211

Closed
zhou-hao opened this issue Sep 24, 2020 · 0 comments
Closed

👑 [需求] 登录逻辑优化 #211

zhou-hao opened this issue Sep 24, 2020 · 0 comments
Assignees
Labels
优化 Optimize existing functions
Milestone

Comments

@zhou-hao
Copy link
Member

zhou-hao commented Sep 24, 2020

  1. 登录成功后 菜单渲染使用接口/authorize/me获取权限信息为准。
  2. 登录时,如果url参数中有个code. 在登录时将此参数值传递到bindCode中。

如: http://localhost:9000/#/user/login?code=1234567&redirect=http%3A%2F%2Flocalhost%3A9000%2F%23%2Fanalysis

{
    "username":"xxxx",
    "password":"xxxx",
    "verifyCode":"axyn",
    "verifyKey":"xxxx",
    "bindCode":"1234567" //此字段
}
@zhou-hao zhou-hao added the 优化 Optimize existing functions label Sep 24, 2020
@zhou-hao zhou-hao added this to the 1.5-RELEASE milestone Sep 24, 2020
@zhou-hao zhou-hao added this to 待办 in JetLinks Iot Platform v1 via automation Sep 24, 2020
Lind-pro added a commit that referenced this issue Sep 24, 2020
登录成功后 菜单渲染使用接口/authorize/me获取权限信息为准

re #211
Lind-pro added a commit that referenced this issue Sep 24, 2020
登录时,如果url参数中有个code. 在登录时将此参数值传递到bindCode中。

re #211
Lind-pro added a commit that referenced this issue Sep 24, 2020
渲染菜单时,先调用reloadAuthorized方法

re #211
Lind-pro added a commit that referenced this issue Sep 25, 2020
根据me接口获取用户菜单信息,me接口没有currentAuthroity字段

re #211
Lind-pro added a commit that referenced this issue Sep 27, 2020
直接使用me接口会导致缓存数据结构错误。login后数据缓存,然后用me接口的权限替换掉登录的permissions

re #211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
优化 Optimize existing functions
Projects
No open projects
Development

No branches or pull requests

2 participants