diff --git a/object/user.go b/object/user.go
index 5dbd0516..2d110980 100644
--- a/object/user.go
+++ b/object/user.go
@@ -28,6 +28,7 @@ type User struct {
CreatedTime string `xorm:"varchar(100)" json:"createdTime"`
Id string `xorm:"varchar(100)" json:"id"`
+ Type string `xorm:"varchar(100)" json:"type"`
Password string `xorm:"varchar(100)" json:"password"`
PasswordType string `xorm:"varchar(100)" json:"passwordType"`
DisplayName string `xorm:"varchar(100)" json:"displayName"`
diff --git a/web/src/UserEditPage.js b/web/src/UserEditPage.js
index 1119c7e6..e32397ad 100644
--- a/web/src/UserEditPage.js
+++ b/web/src/UserEditPage.js
@@ -248,6 +248,19 @@ class UserEditPage extends React.Component {
+
+
+ {i18next.t("general:User Type")}:
+
+
+
+
+
{i18next.t("general:Password Type")}:
diff --git a/web/src/UserListPage.js b/web/src/UserListPage.js
index c896d777..dd788a6b 100644
--- a/web/src/UserListPage.js
+++ b/web/src/UserListPage.js
@@ -47,6 +47,7 @@ class UserListPage extends React.Component {
owner: "admin", // this.props.account.username,
name: `user_${this.state.users.length}`,
createdTime: moment().format(),
+ type: "normal-user",
password: "123",
passwordType: "plain",
displayName: `New User - ${this.state.users.length}`,
diff --git a/web/src/locales/en.json b/web/src/locales/en.json
index c8dbff7a..510e266c 100644
--- a/web/src/locales/en.json
+++ b/web/src/locales/en.json
@@ -17,6 +17,7 @@
"Display Name": "Display Name",
"Avatar": "Avatar",
"Preview": "Preview",
+ "User Type": "User Type",
"Password Type": "Password Type",
"Password": "Password",
"Email": "Email",
diff --git a/web/src/locales/zh.json b/web/src/locales/zh.json
index 1b00c248..d5ff6ca5 100644
--- a/web/src/locales/zh.json
+++ b/web/src/locales/zh.json
@@ -17,6 +17,7 @@
"Display Name": "展示的名字",
"Avatar": "头像",
"Preview": "预览",
+ "User Type": "用户类型",
"Password Type": "密码类型",
"Password": "密码",
"Email": "电子邮件",