Skip to content

revise update password to modify password in authority management #813

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ Constraints:
* Username: 4-32 characters (letters, numbers, special chars: `!@#$%^&*()_+-=`). Cannot duplicate the admin (`root`) username.
* Password: 4-32 characters (letters, numbers, special chars). Stored as SHA-256 hash by default.

2. Update Password
2. Modify Password

Users can update their own passwords. Updating others' passwords requires `MANAGE_USER`.
Users can modify their own passwords. Modifying others' passwords requires `MANAGE_USER`.

```SQL
ALTER USER <USERNAME> SET PASSWORD <password>
Expand Down
2 changes: 1 addition & 1 deletion src/UserGuide/Master/Tree/SQL-Manual/SQL-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- Update password
- Modify password

```sql
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/UserGuide/Master/Tree/User-Manual/Authority-Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- Update password
- Modify password

Users can update their own password, but updating passwords of other users requires the MANAGE_USER permission.
Users can modify their own password, but modifying passwords of other users requires the MANAGE_USER permission.

```sql
ALTER USER <username> SET PASSWORD <password>;
Expand Down
2 changes: 1 addition & 1 deletion src/UserGuide/V1.3.x/SQL-Manual/SQL-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- Update password
- Modify password

```sql
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/UserGuide/V1.3.x/User-Manual/Authority-Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- Update password
- Modify password

Users can update their own password, but updating passwords of other users requires the MANAGE_USER permission.
Users can modify their own password, but modifying passwords of other users requires the MANAGE_USER permission.

```sql
ALTER USER <username> SET PASSWORD <password>;
Expand Down
2 changes: 1 addition & 1 deletion src/UserGuide/dev-1.3/SQL-Manual/SQL-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- Update password
- Modify password

```sql
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/UserGuide/dev-1.3/User-Manual/Authority-Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- Update password
- Modify password

Users can update their own password, but updating passwords of other users requires the MANAGE_USER permission.
Users can modify their own password, but modifying passwords of other users requires the MANAGE_USER permission.

```sql
ALTER USER <username> SET PASSWORD <password>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ Constraints:
* Username: 4-32 characters (letters, numbers, special chars: `!@#$%^&*()_+-=`). Cannot duplicate the admin (`root`) username.
* Password: 4-32 characters (letters, numbers, special chars). Stored as SHA-256 hash by default.

2. Update Password
2. Modify Password

Users can update their own passwords. Updating others' passwords requires `MANAGE_USER`.
Users can modify their own passwords. Modifying others' passwords requires `MANAGE_USER`.

```SQL
ALTER USER <USERNAME> SET PASSWORD <password>
Expand Down
2 changes: 1 addition & 1 deletion src/UserGuide/latest/SQL-Manual/SQL-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- Update password
- Modify password

```sql
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/UserGuide/latest/User-Manual/Authority-Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- Update password
- Modify password

Users can update their own password, but updating passwords of other users requires the MANAGE_USER permission.
Users can modify their own password, but modifying passwords of other users requires the MANAGE_USER permission.

```sql
ALTER USER <username> SET PASSWORD <password>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ eg: CREATE USER user1 'passwd'
- 用户名约束:4~32个字符,支持使用英文大小写字母、数字、特殊字符`(!@#$%^&*()_+-=)`,用户无法创建和管理员用户同名的用户。
- 密码约束:4~32个字符,可使用大写小写字母、数字、特殊字符`(!@#$%^&*()_+-=)`,密码默认采用 SHA-256 进行加密。

2. 更新密码
2. 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备 MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备 MANAGE_USER 权限。

```SQL
ALTER USER <USERNAME> SET PASSWORD <password>
Expand Down
4 changes: 2 additions & 2 deletions src/zh/UserGuide/Master/Tree/SQL-Manual/SQL-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1938,9 +1938,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- 更新密码
- 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备MANAGE_USER 权限。

```SQL
ALTER USER <username> SET PASSWORD <password>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- 更新密码
- 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备MANAGE_USER 权限。

```SQL
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/zh/UserGuide/V1.3.x/SQL-Manual/SQL-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1938,9 +1938,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- 更新密码
- 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备MANAGE_USER 权限。

```SQL
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/zh/UserGuide/V1.3.x/User-Manual/Authority-Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- 更新密码
- 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备MANAGE_USER 权限。

```SQL
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/zh/UserGuide/dev-1.3/SQL-Manual/SQL-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1938,9 +1938,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- 更新密码
- 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备MANAGE_USER 权限。

```SQL
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/zh/UserGuide/dev-1.3/User-Manual/Authority-Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- 更新密码
- 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备MANAGE_USER 权限。

```SQL
ALTER USER <username> SET PASSWORD <password>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ eg: CREATE USER user1 'passwd'
- 用户名约束:4~32个字符,支持使用英文大小写字母、数字、特殊字符`(!@#$%^&*()_+-=)`,用户无法创建和管理员用户同名的用户。
- 密码约束:4~32个字符,可使用大写小写字母、数字、特殊字符`(!@#$%^&*()_+-=)`,密码默认采用 SHA-256 进行加密。

2. 更新密码
2. 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备 MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备 MANAGE_USER 权限。

```SQL
ALTER USER <USERNAME> SET PASSWORD <password>
Expand Down
4 changes: 2 additions & 2 deletions src/zh/UserGuide/latest/SQL-Manual/SQL-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1938,9 +1938,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- 更新密码
- 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备MANAGE_USER 权限。

```SQL
ALTER USER <username> SET PASSWORD <password>;
Expand Down
4 changes: 2 additions & 2 deletions src/zh/UserGuide/latest/User-Manual/Authority-Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ LIST PRIVILEGES OF ROLE <roleName>;
eg: LIST PRIVILEGES OF ROLE actor;
```

- 更新密码
- 修改密码

用户可以更新自己的密码,但更新其他用户密码需要具备MANAGE_USER 权限。
用户可以修改自己的密码,但修改其他用户密码需要具备MANAGE_USER 权限。

```SQL
ALTER USER <username> SET PASSWORD <password>;
Expand Down