|
@@ -22,12 +22,14 @@ export default class AdminSecurityContainer extends Container {
|
|
|
isLocalEnabled: true,
|
|
isLocalEnabled: true,
|
|
|
registrationMode: 'open',
|
|
registrationMode: 'open',
|
|
|
registrationWhiteList: '',
|
|
registrationWhiteList: '',
|
|
|
|
|
+ isLdapEnabled: true,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
this.init();
|
|
this.init();
|
|
|
|
|
|
|
|
this.switchIsLocalEnabled = this.switchIsLocalEnabled.bind(this);
|
|
this.switchIsLocalEnabled = this.switchIsLocalEnabled.bind(this);
|
|
|
this.changeRegistrationMode = this.changeRegistrationMode.bind(this);
|
|
this.changeRegistrationMode = this.changeRegistrationMode.bind(this);
|
|
|
|
|
+ this.switchIsLdapEnabled = this.switchIsLdapEnabled.bind(this);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
init() {
|
|
init() {
|
|
@@ -56,4 +58,11 @@ export default class AdminSecurityContainer extends Container {
|
|
|
this.setState({ registrationMode: value });
|
|
this.setState({ registrationMode: value });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Switch local enabled
|
|
|
|
|
+ */
|
|
|
|
|
+ switchIsLdapEnabled() {
|
|
|
|
|
+ this.setState({ isLdapEnabled: !this.state.isLdapEnabled });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|