1: <?php
2: /**
3: * This code is licensed under AGPLv3 license or Afterlogic Software License
4: * if commercial version of the product was purchased.
5: * For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files.
6: */
7:
8: namespace Aurora\Modules\AdminAuth;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property array $SuperadminWhitelistIp
15: * @property bool $AllowLoginFromCoreModule
16: */
17:
18: class Settings extends \Aurora\System\Module\Settings
19: {
20: protected function initDefaults()
21: {
22: $this->aContainer = [
23: "Disabled" => new SettingsProperty(
24: false,
25: "bool",
26: null,
27: "Setting to true disables the module",
28: ),
29: "SuperadminWhitelistIp" => new SettingsProperty(
30: [],
31: "array",
32: null,
33: "If non-empty, only listed IPs are allowed access from",
34: ),
35: "AllowLoginFromCoreModule" => new SettingsProperty(
36: false,
37: "bool",
38: null,
39: "If set to true, superadmin account is allowed to log into main login page",
40: ),
41: ];
42: }
43: }
44: