Added twoFactorCookieDurationDays to schema and advanced config.json.

Ylian Saint-Hilaire committed Sep 30, 2020 at 11:13 UTC 64821e3b32a190d00bc3d9eaf50d2dc05187dacf
1 file changed +4 -3
meshcentral-config-schema.json
+4 -3
@@ -90,7 +90,7 @@
90 "mpsAliasPort": { "type": "integer", "minimum": 1, "maximum": 65535 },
91 "mpsAliasHost": { "type": "string" },
92 "mpsTlsOffload": { "type": "boolean", "default": false },
93 - "no2FactorAuth": { "type": "boolean" },
93 + "no2FactorAuth": { "type": "boolean", "default": false },
94 "log": { "type": "string" },
95 "syslog": { "type": "string" },
96 "syslogauth": { "type": "string" },
@@ -168,8 +168,8 @@
168 "newAccountsRights": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
169 "welcomeText": { "type": "string", "description": "Text that will be shown on the login screen." },
170 "welcomePicture": { "type": "string", "description": "Name of the PNG or JPEG file that will be shown on the login screen. Put this file in the meshcentral-data folder and place the file name here." },
171 - "hide": { "type": "integer" },
172 - "footer": { "type": "string" },
171 + "hide": { "type": "integer", "default": 0 },
172 + "footer": { "type": "string", "default": null },
173 "certUrl": {
174 "type": "string",
175 "format": "uri",
@@ -203,6 +203,7 @@
203 "banCommonPasswords": { "type": "boolean", "description": "Uses WildLeek to block use of the 10000 most commonly used passwords." }
204 }
205 },
206 + "twoFactorCookieDurationDays": { "type": "integer", "default": 30, "description": "Number of days that a user is allowed to remember this device for when completing 2FA. Set this to 0 to remove this option." },
207 "auth": { "type": "string", "default": null, "enum": [null, "sspi", "ldap"], "description": "Type of user authentication to use, this can be SSPI on Windows or LDAP. If not set, username/password is used." },
208 "ldapUserKey": { "type": "string" },
209 "ldapUserName": { "type": "string" },