mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Add user type.
This commit is contained in:
@ -248,6 +248,19 @@ class UserEditPage extends React.Component {
|
||||
</Row>
|
||||
</Col>
|
||||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
{i18next.t("general:User Type")}:
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<Select virtual={false} style={{width: '100%'}} value={this.state.user.type} onChange={(value => {this.updateUserField('type', value);})}>
|
||||
{
|
||||
['normal-user']
|
||||
.map((item, index) => <Option key={index} value={item}>{item}</Option>)
|
||||
}
|
||||
</Select>
|
||||
</Col>
|
||||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
{i18next.t("general:Password Type")}:
|
||||
|
@ -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}`,
|
||||
|
@ -17,6 +17,7 @@
|
||||
"Display Name": "Display Name",
|
||||
"Avatar": "Avatar",
|
||||
"Preview": "Preview",
|
||||
"User Type": "User Type",
|
||||
"Password Type": "Password Type",
|
||||
"Password": "Password",
|
||||
"Email": "Email",
|
||||
|
@ -17,6 +17,7 @@
|
||||
"Display Name": "展示的名字",
|
||||
"Avatar": "头像",
|
||||
"Preview": "预览",
|
||||
"User Type": "用户类型",
|
||||
"Password Type": "密码类型",
|
||||
"Password": "密码",
|
||||
"Email": "电子邮件",
|
||||
|
Reference in New Issue
Block a user