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

租户管理员重置密码 #1466

Closed
narasux opened this issue Dec 11, 2023 · 2 comments · Fixed by #1480
Closed

租户管理员重置密码 #1466

narasux opened this issue Dec 11, 2023 · 2 comments · Fixed by #1480
Assignees
Labels
Priority: Middlum Middlum priority tenant 多租户版本功能
Milestone

Comments

@narasux
Copy link
Collaborator

narasux commented Dec 11, 2023

租户管理员可以在【本地】数据源的用户列表页面,选择某个用户进行重置密码的操作,需要注意的是,可以随机生成密码

@narasux narasux added this to the Y2023M50 milestone Dec 11, 2023
@narasux narasux added Priority: Middlum Middlum priority tenant 多租户版本功能 labels Dec 11, 2023
@neronkl
Copy link
Contributor

neronkl commented Dec 11, 2023

企业微信截图_4ff49428-0543-4af4-9dba-f83ee805ff0c

@neronkl
Copy link
Contributor

neronkl commented Dec 12, 2023

数据源用户密码重置

1 密码重置前提

密码重置操作仅限数据源所属的租户管理员进行,且用户所属数据源为本地数据源

2.1 提供随机密码

根据数据源的密码规则,获取随机密码: 复用接口/api/v1/web/data-sources/random-passwords/,该接口可传递数据源的密码规则,生成随机字符串作为密码

2.2 提供密码校验

传递的密码,根据被变更用户所属数据源设置的密码规则进行校验

3 接口设计

管理员重置数据源用户密码

  • api:api/v1/web/data-sources/users/<int:id>/password/

  • method:Patch

  • request

    字段名称 类型 说明 位置
    id int 数据源用户ID url
    password str 新密码 body
  • response

    • null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Middlum Middlum priority tenant 多租户版本功能
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants