|
@@ -43,8 +43,10 @@ class AssociateModal extends React.Component {
|
|
|
|
|
|
|
|
async onClickAddBtn() {
|
|
async onClickAddBtn() {
|
|
|
const { t, personalContainer } = this.props;
|
|
const { t, personalContainer } = this.props;
|
|
|
|
|
+ const { username, password } = this.state;
|
|
|
|
|
+
|
|
|
try {
|
|
try {
|
|
|
- await personalContainer.associateLdapAccount();
|
|
|
|
|
|
|
+ await personalContainer.associateLdapAccount({ username, password });
|
|
|
toastSuccess(t('security_setting.updated_general_security_setting'));
|
|
toastSuccess(t('security_setting.updated_general_security_setting'));
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|