| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | namespace Aurora\Modules\StandardLoginFormWebclient; |
| 9: | |
| 10: | use Aurora\System\SettingsProperty; |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 17: | |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | |
| 25: | |
| 26: | |
| 27: | class Settings extends \Aurora\System\Module\Settings |
| 28: | { |
| 29: | protected function initDefaults() |
| 30: | { |
| 31: | $this->aContainer = [ |
| 32: | "Disabled" => new SettingsProperty( |
| 33: | false, |
| 34: | "bool", |
| 35: | null, |
| 36: | "Setting to true disables the module", |
| 37: | ), |
| 38: | "ServerModuleName" => new SettingsProperty( |
| 39: | "StandardLoginFormWebclient", |
| 40: | "string", |
| 41: | null, |
| 42: | "Defines name of the module responsible for login page", |
| 43: | ), |
| 44: | "HashModuleName" => new SettingsProperty( |
| 45: | "login", |
| 46: | "string", |
| 47: | null, |
| 48: | "Defines hash of the module responsible for login page", |
| 49: | ), |
| 50: | "CustomLoginUrl" => new SettingsProperty( |
| 51: | "", |
| 52: | "string", |
| 53: | null, |
| 54: | "If specified, user will be directed to login page at this URL instead of default login page", |
| 55: | ), |
| 56: | "DemoLogin" => new SettingsProperty( |
| 57: | "", |
| 58: | "string", |
| 59: | null, |
| 60: | "If set, denotes email address of predefined demo account", |
| 61: | ), |
| 62: | "DemoPassword" => new SettingsProperty( |
| 63: | "", |
| 64: | "string", |
| 65: | null, |
| 66: | "If set, denotes password of predefined demo account", |
| 67: | ), |
| 68: | "InfoText" => new SettingsProperty( |
| 69: | "", |
| 70: | "string", |
| 71: | null, |
| 72: | "Defines additional text message shown on login page", |
| 73: | ), |
| 74: | "BottomInfoHtmlText" => new SettingsProperty( |
| 75: | "", |
| 76: | "string", |
| 77: | null, |
| 78: | "Defines bottom text message shown on login page", |
| 79: | ), |
| 80: | "LoginSignMeType" => new SettingsProperty( |
| 81: | 0, |
| 82: | "int", |
| 83: | null, |
| 84: | "", |
| 85: | ), |
| 86: | "AllowChangeLanguage" => new SettingsProperty( |
| 87: | true, |
| 88: | "bool", |
| 89: | null, |
| 90: | "Enables changing language on login page", |
| 91: | ), |
| 92: | "UseDropdownLanguagesView" => new SettingsProperty( |
| 93: | false, |
| 94: | "bool", |
| 95: | null, |
| 96: | "If true, language selector is presented as a dropdown menu", |
| 97: | ), |
| 98: | "AuthTokenCookieExpireTime" => new SettingsProperty( |
| 99: | 30, |
| 100: | "int", |
| 101: | null, |
| 102: | "Sets authentication token expiry time, in days", |
| 103: | ), |
| 104: | ]; |
| 105: | } |
| 106: | } |
| 107: | |