feat: set password for users

Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed useless blank

Signed-off-by: Kininaru <shiftregister233@outlook.com>

add license header

Signed-off-by: Kininaru <shiftregister233@outlook.com>

i18n

Signed-off-by: Kininaru <shiftregister233@outlook.com>

database logic

Signed-off-by: Kininaru <shiftregister233@outlook.com>

i18n

Signed-off-by: Kininaru <shiftregister233@outlook.com>

i18n

Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
Kininaru
2021-05-09 19:54:20 +08:00
parent 19c1ef1b68
commit 33e61cc5cf
8 changed files with 220 additions and 7 deletions

View File

@ -24,6 +24,7 @@ import * as AuthBackend from "./auth/AuthBackend";
import * as ApplicationBackend from "./backend/ApplicationBackend";
import * as ProviderBackend from "./backend/ProviderBackend";
import * as Provider from "./auth/Provider";
import PasswordModal from "./PasswordModal";
const { Option } = Select;
@ -266,11 +267,7 @@ class UserEditPage extends React.Component {
{i18next.t("general:Password")}:
</Col>
<Col span={22} >
<Row>
<Button type="default">
{this.state.user.password === "" ? i18next.t("user:Set password...") : i18next.t("user:Modify password...")}
</Button>
</Row>
<PasswordModal user={this.state.user} />
</Col>
</Row>
<Row style={{marginTop: '20px'}} >