From cf3c243af27e111fcad4f6f58885cf9e9ff3c5db Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Wed, 23 Sep 2015 13:40:58 +0200 Subject: [PATCH] Set default values for user preferences --- .../PM/DataModel/User.Header.Preferences.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/frontend/delta/js/Clipperz/PM/DataModel/User.Header.Preferences.js b/frontend/delta/js/Clipperz/PM/DataModel/User.Header.Preferences.js index 61deac0..c2ffed9 100644 --- a/frontend/delta/js/Clipperz/PM/DataModel/User.Header.Preferences.js +++ b/frontend/delta/js/Clipperz/PM/DataModel/User.Header.Preferences.js @@ -75,7 +75,21 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.User.Header.Preferences, Clipperz.PM. Clipperz.PM.DataModel.User.Header.Preferences.defaultPreferences = { 'lock': { - 'timeoutInMinutes': 10 + 'enabled': false, + 'timeoutInMinutes': 10, }, - 'shouldShowDonationPanel': true + 'passwordGenerator': { + 'length': 24, + 'characters': { + 'A-Z': true, + 'a-z': true, + '0-9': true, + 'space': false, + '!#?': true, + }, + }, + + // legacy preferences + 'preferredLanguage': 'en', + 'shouldShowDonationPanel': true, }; \ No newline at end of file