Add password button.

This commit is contained in:
Yang Luo
2021-05-09 14:53:05 +08:00
parent efab90ef3f
commit d2d4c411ab
4 changed files with 13 additions and 5 deletions

View File

@ -266,9 +266,11 @@ class UserEditPage extends React.Component {
{i18next.t("general:Password")}:
</Col>
<Col span={22} >
<Input value={this.state.user.password} onChange={e => {
this.updateUserField('password', e.target.value);
}} />
<Row>
<Button type="default">
{this.state.user.password === "" ? i18next.t("user:Set password...") : i18next.t("user:Modify password...")}
</Button>
</Row>
</Col>
</Row>
<Row style={{marginTop: '20px'}} >