Skip to content

Commit

Permalink
throw clear exception tips and modify doc about user (DataLinkDC#2683)
Browse files Browse the repository at this point in the history
Co-authored-by: chenli <[email protected]>
  • Loading branch information
hlwaa and chenli authored Dec 19, 2023
1 parent 915ccc1 commit 19d921f
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 77 deletions.
4 changes: 3 additions & 1 deletion dinky-admin/src/main/java/org/dinky/init/SystemInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.dinky.daemon.pool.ScheduleThreadPool;
import org.dinky.daemon.task.DaemonTask;
import org.dinky.daemon.task.DaemonTaskConfig;
import org.dinky.data.exception.BusException;
import org.dinky.data.exception.DinkyException;
import org.dinky.data.model.Configuration;
import org.dinky.data.model.SystemConfiguration;
Expand Down Expand Up @@ -252,7 +253,8 @@ private void aboutDolphinSchedulerInitOperation(Object v) {
}
} catch (Exception e) {
log.error("Error in DolphinScheduler: ", e);
throw new DinkyException(e);
throw new BusException(
"get or create DolphinScheduler project failed, please check the config of DolphinScheduler!");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "认证中心",
"position": 4
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
position: 1
position: 3
id: menu_add
title: 菜单
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
position: 1
position: 2
id: role
title: 角色
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
position: 1
position: 4
id: row_limits
title: 行权限
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
position: 1
position: 5
id: tenant
title: 租户
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
position: 1
position: 6
id: token
title: 令牌
---
Expand Down
31 changes: 29 additions & 2 deletions docs/docs/administrator_guide/authentication_center/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ title: 用户
---


用户模块提供了用户的新增、删除、编辑、角色分配、密码修改及重置等功能:
用户模块提供了用户的新增、删除、编辑、角色分配、密码修改及重置等功能。此用户管理中的用户仅限于登录 Dinky 界面。

**默认用户名/密码:** admin/admin

### 新建
点击新建按钮,输入用户名等相关信息,完成用户的新建。
Expand All @@ -30,11 +32,16 @@ title: 用户

### 修改密码
点击修改密码按钮,进行用户密码的修改操作。
- 普通用户创建好后,**默认密码****123456**
- **admin 用户**密码是 **admin** 。为避免信息泄露,**在生产环境建议用户修改密码**

**认证中心 > 用户 > 修改密码**

![password_modify](http://www.aiwenmo.com/dinky/docs/test/password_modify.png)

当密码修改成功后,用户可以选择界面**右上角****退出登录**,既可通过新密码登录 Dinky。


### 用户删除
点击用户删除按钮,进行用户的删除操作。

Expand All @@ -43,8 +50,28 @@ title: 用户
![user_delete](http://www.aiwenmo.com/dinky/docs/test/user_delete.png)

### 密码重置
点击密码重置按钮,进行密码的重置操作。
点击密码重置按钮,进行密码的重置操作。重置后的密码为随机密码,页面会有弹框消息提示,请注意查看。

**认证中心 > 用户 > 重置**

![password_reset](http://www.aiwenmo.com/dinky/docs/test/password_reset.png)

用户管理相关字段含义如下:

| 字段 | 说明 |
| :----------: | :----------------------------------: |
| 用户名 | 自定义 |
| 昵称 | 自定义 |
| 工号 | 唯一值 |
| 手机号 | 用户使用的手机号 |
| 注册类型 | 有两种类型,本地注册用户为LOCAL, LDAP用户为LDAP |
| 是否删除 | 用户状态是否删除 |
| 超级管理员 | admin默认是,其他自定义用户为否 |
| 是否启用 | 已启用<br/> 已禁用 |
| 操作 | 对用户信息做编辑、删除、修改密码操作 |

:::warning 注意事项

​ admin 用户在 Dinky 是最高权限用户,无法删除,只能修改密码

:::
69 changes: 0 additions & 69 deletions docs/docs/administrator_guide/system_setting/user_management.md

This file was deleted.

0 comments on commit 19d921f

Please sign in to comment.