[NEW] Setting option to mark as containing a secret/password (#10273)

* Add secret property to setting

Co-authored-by: kb0304 <karanbedi0304@gmail.com>
Co-authored-by: Aaron Ogle <aaron@geekgonecrazy.com>

* Fixed missed global reference

* Add missed settings
pull/13807/head^2
Karan Bedi 7 years ago committed by Rodrigo Nascimento
parent e89b450da7
commit cb716f3e25
  1. 20
      app/apps/server/bridges/settings.js
  2. 2
      app/autotranslate/server/settings.js
  3. 4
      app/crowd/server/settings.js
  4. 2
      app/dolphin/server/startup.js
  5. 2
      app/drupal/server/startup.js
  6. 8
      app/file-upload/server/startup/settings.js
  7. 4
      app/github-enterprise/server/startup.js
  8. 4
      app/gitlab/server/startup.js
  9. 1
      app/google-vision/server/settings.js
  10. 6
      app/ldap/server/settings.js
  11. 4
      app/lib/server/startup/email.js
  12. 32
      app/lib/server/startup/settings.js
  13. 2
      app/livechat/server/config.js
  14. 2
      app/mapview/server/settings.js
  15. 2
      app/meteor-accounts-saml/server/saml_rocketchat.js
  16. 1
      app/settings/server/functions/settings.js
  17. 1
      app/slackbridge/server/settings.js
  18. 1
      app/smarsh-connector/server/settings.js
  19. 4
      app/sms/server/settings.js
  20. 2
      app/wordpress/server/startup.js

@ -4,28 +4,12 @@ export class AppSettingBridge {
constructor(orch) {
this.orch = orch;
this.allowedGroups = [];
this.disallowedSettings = [
'Accounts_RegistrationForm_SecretURL', 'CROWD_APP_USERNAME', 'CROWD_APP_PASSWORD', 'Direct_Reply_Username',
'Direct_Reply_Password', 'SMTP_Username', 'SMTP_Password', 'FileUpload_S3_AWSAccessKeyId', 'FileUpload_S3_AWSSecretAccessKey',
'FileUpload_S3_BucketURL', 'FileUpload_GoogleStorage_Bucket', 'FileUpload_GoogleStorage_AccessId',
'FileUpload_GoogleStorage_Secret', 'GoogleVision_ServiceAccount', 'Allow_Invalid_SelfSigned_Certs', 'GoogleTagManager_id',
'Bugsnag_api_key', 'LDAP_CA_Cert', 'LDAP_Reject_Unauthorized', 'LDAP_Domain_Search_User', 'LDAP_Domain_Search_Password',
'Livechat_secret_token', 'Livechat_Knowledge_Apiai_Key', 'AutoTranslate_GoogleAPIKey', 'MapView_GMapsAPIKey',
'Meta_fb_app_id', 'Meta_google-site-verification', 'Meta_msvalidate01', 'Accounts_OAuth_Dolphin_secret',
'Accounts_OAuth_Drupal_secret', 'Accounts_OAuth_Facebook_secret', 'Accounts_OAuth_Github_secret', 'API_GitHub_Enterprise_URL',
'Accounts_OAuth_GitHub_Enterprise_secret', 'API_Gitlab_URL', 'Accounts_OAuth_Gitlab_secret', 'Accounts_OAuth_Google_secret',
'Accounts_OAuth_Linkedin_secret', 'Accounts_OAuth_Meteor_secret', 'Accounts_OAuth_Twitter_secret', 'API_Wordpress_URL',
'Accounts_OAuth_Wordpress_secret', 'Push_apn_passphrase', 'Push_apn_key', 'Push_apn_cert', 'Push_apn_dev_passphrase',
'Push_apn_dev_key', 'Push_apn_dev_cert', 'Push_gcm_api_key', 'Push_gcm_project_number', 'SAML_Custom_Default_cert',
'SAML_Custom_Default_private_key', 'SlackBridge_APIToken', 'Smarsh_Email', 'SMS_Twilio_Account_SID', 'SMS_Twilio_authToken',
'SMS_Voxtelesys_authToken', 'SMS_Voxtelesys_URL',
];
}
async getAll(appId) {
this.orch.debugLog(`The App ${ appId } is getting all the settings.`);
return Settings.find({ _id: { $nin: this.disallowedSettings } })
return Settings.find({ secret: false })
.fetch()
.map((s) => this.orch.getConverters().get('settings').convertToApp(s));
}
@ -59,7 +43,7 @@ export class AppSettingBridge {
async isReadableById(id, appId) {
this.orch.debugLog(`The App ${ appId } is checking if they can read the setting ${ id }.`);
return !this.disallowedSettings.includes(id);
return !Settings.findOneById(id).secret;
}
async updateOne(setting, appId) {

@ -4,5 +4,5 @@ import { settings } from '../../settings';
Meteor.startup(function() {
settings.add('AutoTranslate_Enabled', false, { type: 'boolean', group: 'Message', section: 'AutoTranslate', public: true });
settings.add('AutoTranslate_GoogleAPIKey', '', { type: 'string', group: 'Message', section: 'AutoTranslate', enableQuery: { _id: 'AutoTranslate_Enabled', value: true } });
settings.add('AutoTranslate_GoogleAPIKey', '', { type: 'string', group: 'Message', section: 'AutoTranslate', enableQuery: { _id: 'AutoTranslate_Enabled', value: true }, secret: true });
});

@ -10,8 +10,8 @@ Meteor.startup(function() {
this.add('CROWD_Enable', false, { type: 'boolean', public: true, i18nLabel: 'Enabled' });
this.add('CROWD_URL', '', { type: 'string', enableQuery, i18nLabel: 'URL' });
this.add('CROWD_Reject_Unauthorized', true, { type: 'boolean', enableQuery });
this.add('CROWD_APP_USERNAME', '', { type: 'string', enableQuery, i18nLabel: 'Username' });
this.add('CROWD_APP_PASSWORD', '', { type: 'password', enableQuery, i18nLabel: 'Password' });
this.add('CROWD_APP_USERNAME', '', { type: 'string', enableQuery, i18nLabel: 'Username', secret: true });
this.add('CROWD_APP_PASSWORD', '', { type: 'password', enableQuery, i18nLabel: 'Password', secret: true });
this.add('CROWD_Sync_User_Data', false, { type: 'boolean', enableQuery, i18nLabel: 'Sync_Users' });
this.add('CROWD_Sync_Interval', 'Every 60 mins', { type: 'string', enableQuery: enableSyncQuery, i18nLabel: 'Sync_Interval', i18nDescription: 'Crowd_sync_interval_Description' });
this.add('CROWD_Clean_Usernames', true, { type: 'boolean', enableQuery, i18nLabel: 'Clean_Usernames', i18nDescription: 'Crowd_clean_usernames_Description' });

@ -3,7 +3,7 @@ import { settings } from '../../settings';
settings.add('Accounts_OAuth_Dolphin_URL', '', { type: 'string', group: 'OAuth', public: true, section: 'Dolphin', i18nLabel: 'URL' });
settings.add('Accounts_OAuth_Dolphin', false, { type: 'boolean', group: 'OAuth', section: 'Dolphin', i18nLabel: 'Accounts_OAuth_Custom_Enable' });
settings.add('Accounts_OAuth_Dolphin_id', '', { type: 'string', group: 'OAuth', section: 'Dolphin', i18nLabel: 'Accounts_OAuth_Custom_id' });
settings.add('Accounts_OAuth_Dolphin_secret', '', { type: 'string', group: 'OAuth', section: 'Dolphin', i18nLabel: 'Accounts_OAuth_Custom_Secret' });
settings.add('Accounts_OAuth_Dolphin_secret', '', { type: 'string', group: 'OAuth', section: 'Dolphin', i18nLabel: 'Accounts_OAuth_Custom_Secret', secret: true });
settings.add('Accounts_OAuth_Dolphin_login_style', 'redirect', { type: 'select', group: 'OAuth', section: 'Dolphin', i18nLabel: 'Accounts_OAuth_Custom_Login_Style', persistent: true, values: [{ key: 'redirect', i18nLabel: 'Redirect' }, { key: 'popup', i18nLabel: 'Popup' }, { key: '', i18nLabel: 'Default' }] });
settings.add('Accounts_OAuth_Dolphin_button_label_text', '', { type: 'string', group: 'OAuth', section: 'Dolphin', i18nLabel: 'Accounts_OAuth_Custom_Button_Label_Text', persistent: true });
settings.add('Accounts_OAuth_Dolphin_button_label_color', '#FFFFFF', { type: 'string', group: 'OAuth', section: 'Dolphin', i18nLabel: 'Accounts_OAuth_Custom_Button_Label_Color', persistent: true });

@ -10,7 +10,7 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_Drupal', false, { type: 'boolean' });
this.add('API_Drupal_URL', '', { type: 'string', public: true, enableQuery, i18nDescription: 'API_Drupal_URL_Description' });
this.add('Accounts_OAuth_Drupal_id', '', { type: 'string', enableQuery });
this.add('Accounts_OAuth_Drupal_secret', '', { type: 'string', enableQuery });
this.add('Accounts_OAuth_Drupal_secret', '', { type: 'string', enableQuery, secret: true });
this.add('Accounts_OAuth_Drupal_callback_url', '_oauth/drupal', { type: 'relativeUrl', readonly: true, force: true, enableQuery });
});
});

@ -66,6 +66,7 @@ settings.addGroup('FileUpload', function() {
_id: 'FileUpload_Storage_Type',
value: 'AmazonS3',
},
secret: true,
});
this.add('FileUpload_S3_AWSSecretAccessKey', '', {
type: 'string',
@ -73,6 +74,7 @@ settings.addGroup('FileUpload', function() {
_id: 'FileUpload_Storage_Type',
value: 'AmazonS3',
},
secret: true,
});
this.add('FileUpload_S3_CDN', '', {
type: 'string',
@ -95,6 +97,7 @@ settings.addGroup('FileUpload', function() {
value: 'AmazonS3',
},
i18nDescription: 'Override_URL_to_which_files_are_uploaded_This_url_also_used_for_downloads_unless_a_CDN_is_given.',
secret: true,
});
this.add('FileUpload_S3_SignatureVersion', 'v4', {
type: 'string',
@ -142,6 +145,7 @@ settings.addGroup('FileUpload', function() {
_id: 'FileUpload_Storage_Type',
value: 'GoogleCloudStorage',
},
secret: true,
});
this.add('FileUpload_GoogleStorage_AccessId', '', {
type: 'string',
@ -150,6 +154,7 @@ settings.addGroup('FileUpload', function() {
_id: 'FileUpload_Storage_Type',
value: 'GoogleCloudStorage',
},
secret: true,
});
this.add('FileUpload_GoogleStorage_Secret', '', {
type: 'string',
@ -159,6 +164,7 @@ settings.addGroup('FileUpload', function() {
_id: 'FileUpload_Storage_Type',
value: 'GoogleCloudStorage',
},
secret: true,
});
this.add('FileUpload_GoogleStorage_Proxy_Avatars', false, {
type: 'boolean',
@ -207,6 +213,7 @@ settings.addGroup('FileUpload', function() {
_id: 'FileUpload_Storage_Type',
value: 'Webdav',
},
secret: true,
});
this.add('FileUpload_Webdav_Password', '', {
type: 'password',
@ -215,6 +222,7 @@ settings.addGroup('FileUpload', function() {
_id: 'FileUpload_Storage_Type',
value: 'Webdav',
},
secret: true,
});
this.add('FileUpload_Webdav_Proxy_Avatars', false, {
type: 'boolean',

@ -9,8 +9,8 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_GitHub_Enterprise', false, { type: 'boolean' });
this.add('API_GitHub_Enterprise_URL', '', { type: 'string', public: true, enableQuery, i18nDescription: 'API_GitHub_Enterprise_URL_Description' });
this.add('Accounts_OAuth_GitHub_Enterprise_id', '', { type: 'string', enableQuery });
this.add('Accounts_OAuth_GitHub_Enterprise_secret', '', { type: 'string', enableQuery });
this.add('Accounts_OAuth_GitHub_Enterprise_id', '', { type: 'string', enableQuery, secret: true });
this.add('Accounts_OAuth_GitHub_Enterprise_secret', '', { type: 'string', enableQuery, secret: true });
this.add('Accounts_OAuth_GitHub_Enterprise_callback_url', '_oauth/github_enterprise', { type: 'relativeUrl', readonly: true, force: true, enableQuery });
});
});

@ -8,9 +8,9 @@ settings.addGroup('OAuth', function() {
};
this.add('Accounts_OAuth_Gitlab', false, { type: 'boolean', public: true });
this.add('API_Gitlab_URL', '', { type: 'string', enableQuery, public: true });
this.add('API_Gitlab_URL', '', { type: 'string', enableQuery, public: true, secret: true });
this.add('Accounts_OAuth_Gitlab_id', '', { type: 'string', enableQuery });
this.add('Accounts_OAuth_Gitlab_secret', '', { type: 'string', enableQuery });
this.add('Accounts_OAuth_Gitlab_secret', '', { type: 'string', enableQuery, secret: true });
this.add('Accounts_OAuth_Gitlab_callback_url', '_oauth/gitlab', { type: 'relativeUrl', readonly: true, force: true, enableQuery });
});
});

@ -16,6 +16,7 @@ Meteor.startup(function() {
section: 'Google Vision',
multiline: true,
enableQuery: { _id: 'GoogleVision_Enable', value: true },
secret: true,
});
settings.add('GoogleVision_Max_Monthly_Calls', 0, {
type: 'int',

@ -30,7 +30,7 @@ settings.addGroup('LDAP', function() {
this.add('LDAP_Port', '389', { type: 'string', enableQuery });
this.add('LDAP_Reconnect', false, { type: 'boolean', enableQuery });
this.add('LDAP_Encryption', 'plain', { type: 'select', values: [{ key: 'plain', i18nLabel: 'No_Encryption' }, { key: 'tls', i18nLabel: 'StartTLS' }, { key: 'ssl', i18nLabel: 'SSL/LDAPS' }], enableQuery });
this.add('LDAP_CA_Cert', '', { type: 'string', multiline: true, enableQuery: enableTLSQuery });
this.add('LDAP_CA_Cert', '', { type: 'string', multiline: true, enableQuery: enableTLSQuery, secret: true });
this.add('LDAP_Reject_Unauthorized', true, { type: 'boolean', enableQuery: enableTLSQuery });
this.add('LDAP_BaseDN', '', { type: 'string', enableQuery });
this.add('LDAP_Internal_Log_Level', 'disabled', {
@ -49,8 +49,8 @@ settings.addGroup('LDAP', function() {
this.section('Authentication', function() {
this.add('LDAP_Authentication', false, { type: 'boolean', enableQuery });
this.add('LDAP_Authentication_UserDN', '', { type: 'string', enableQuery: enableAuthentication });
this.add('LDAP_Authentication_Password', '', { type: 'password', enableQuery: enableAuthentication });
this.add('LDAP_Authentication_UserDN', '', { type: 'string', enableQuery: enableAuthentication, secret: true });
this.add('LDAP_Authentication_Password', '', { type: 'password', enableQuery: enableAuthentication, secret: true });
});
this.section('Timeouts', function() {

@ -278,6 +278,7 @@ settings.addGroup('Email', function() {
env: true,
i18nLabel: 'Username',
placeholder: 'email@domain',
secret: true,
});
this.add('Direct_Reply_ReplyTo', '', {
type: 'string',
@ -289,6 +290,7 @@ settings.addGroup('Email', function() {
type: 'password',
env: true,
i18nLabel: 'Password',
secret: true,
});
});
this.section('SMTP', function() {
@ -335,12 +337,14 @@ settings.addGroup('Email', function() {
env: true,
i18nLabel: 'Username',
autocomplete: false,
secret: true,
});
this.add('SMTP_Password', '', {
type: 'password',
env: true,
i18nLabel: 'Password',
autocomplete: false,
secret: true,
});
this.add('From_Email', '', {
type: 'string',

@ -173,6 +173,7 @@ settings.addGroup('Accounts', function() {
});
this.add('Accounts_RegistrationForm_SecretURL', Random.id(), {
type: 'string',
secret: true,
});
this.add('Accounts_RegistrationForm_LinkReplacementText', 'New user registration is currently disabled', {
type: 'string',
@ -559,6 +560,7 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_Facebook_secret', '', {
type: 'string',
enableQuery,
secret: true,
});
return this.add('Accounts_OAuth_Facebook_callback_url', '_oauth/facebook', {
type: 'relativeUrl',
@ -583,6 +585,7 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_Google_secret', '', {
type: 'string',
enableQuery,
secret: true,
});
return this.add('Accounts_OAuth_Google_callback_url', '_oauth/google', {
type: 'relativeUrl',
@ -607,6 +610,7 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_Github_secret', '', {
type: 'string',
enableQuery,
secret: true,
});
return this.add('Accounts_OAuth_Github_callback_url', '_oauth/github', {
type: 'relativeUrl',
@ -631,6 +635,7 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_Linkedin_secret', '', {
type: 'string',
enableQuery,
secret: true,
});
return this.add('Accounts_OAuth_Linkedin_callback_url', '_oauth/linkedin', {
type: 'relativeUrl',
@ -655,6 +660,7 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_Meteor_secret', '', {
type: 'string',
enableQuery,
secret: true,
});
return this.add('Accounts_OAuth_Meteor_callback_url', '_oauth/meteor', {
type: 'relativeUrl',
@ -679,6 +685,7 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_Twitter_secret', '', {
type: 'string',
enableQuery,
secret: true,
});
return this.add('Accounts_OAuth_Twitter_callback_url', '_oauth/twitter', {
type: 'relativeUrl',
@ -743,6 +750,7 @@ settings.addGroup('General', function() {
});
this.add('Allow_Invalid_SelfSigned_Certs', false, {
type: 'boolean',
secret: true,
});
this.add('Favorite_Rooms', true, {
type: 'boolean',
@ -807,10 +815,12 @@ settings.addGroup('General', function() {
this.add('GoogleTagManager_id', '', {
type: 'string',
public: true,
secret: true,
});
this.add('Bugsnag_api_key', '', {
type: 'string',
public: false,
secret: true,
});
this.add('Restart', 'restart_server', {
type: 'action',
@ -1089,15 +1099,18 @@ settings.addGroup('Meta', function() {
});
this.add('Meta_fb_app_id', '', {
type: 'string',
secret: true,
});
this.add('Meta_robots', 'INDEX,FOLLOW', {
type: 'string',
});
this.add('Meta_google-site-verification', '', {
type: 'string',
secret: true,
});
this.add('Meta_msvalidate01', '', {
type: 'string',
secret: true,
});
return this.add('Meta_custom', '', {
type: 'code',
@ -1167,32 +1180,40 @@ settings.addGroup('Push', function() {
this.section('Certificates_and_Keys', function() {
this.add('Push_apn_passphrase', '', {
type: 'string',
secret: true,
});
this.add('Push_apn_key', '', {
type: 'string',
multiline: true,
secret: true,
});
this.add('Push_apn_cert', '', {
type: 'string',
multiline: true,
secret: true,
});
this.add('Push_apn_dev_passphrase', '', {
type: 'string',
secret: true,
});
this.add('Push_apn_dev_key', '', {
type: 'string',
multiline: true,
secret: true,
});
this.add('Push_apn_dev_cert', '', {
type: 'string',
multiline: true,
secret: true,
});
this.add('Push_gcm_api_key', '', {
type: 'string',
secret: true,
});
return this.add('Push_gcm_project_number', '', {
type: 'string',
public: true,
secret: true,
});
});
return this.section('Privacy', function() {
@ -2570,6 +2591,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Id', '', {
@ -2580,6 +2602,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Name', '', {
@ -2590,6 +2613,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Client_Id', '', {
@ -2600,6 +2624,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Client_Secret', '', {
@ -2610,6 +2635,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Client_Secret_Expires_At', '', {
@ -2620,6 +2646,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Registration_Client_Uri', '', {
@ -2630,6 +2657,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_License', '', {
@ -2640,6 +2668,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Access_Token', '', {
@ -2650,6 +2679,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Access_Token_Expires_At', new Date(), {
@ -2660,6 +2690,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
this.add('Cloud_Workspace_Registration_State', '', {
@ -2670,6 +2701,7 @@ settings.addGroup('Setup_Wizard', function() {
_id: 'Register_Server',
value: true,
},
secret: true,
});
});
});

@ -162,6 +162,7 @@ Meteor.startup(function() {
group: 'Livechat',
section: 'CRM_Integration',
i18nLabel: 'Secret_token',
secret: true,
});
settings.add('Livechat_webhook_on_close', false, {
@ -236,6 +237,7 @@ Meteor.startup(function() {
section: 'Knowledge_Base',
public: true,
i18nLabel: 'Apiai_Key',
secret: true,
});
settings.add('Livechat_Knowledge_Apiai_Language', 'en', {

@ -4,5 +4,5 @@ import { settings } from '../../settings';
Meteor.startup(function() {
settings.add('MapView_Enabled', false, { type: 'boolean', group: 'Message', section: 'Google Maps', public: true, i18nLabel: 'MapView_Enabled', i18nDescription: 'MapView_Enabled_Description' });
return settings.add('MapView_GMapsAPIKey', '', { type: 'string', group: 'Message', section: 'Google Maps', public: true, i18nLabel: 'MapView_GMapsAPIKey', i18nDescription: 'MapView_GMapsAPIKey_Description' });
return settings.add('MapView_GMapsAPIKey', '', { type: 'string', group: 'Message', section: 'Google Maps', public: true, i18nLabel: 'MapView_GMapsAPIKey', i18nDescription: 'MapView_GMapsAPIKey_Description', secret: true });
});

@ -53,6 +53,7 @@ Meteor.methods({
section: name,
i18nLabel: 'SAML_Custom_Cert',
multiline: true,
secret: true,
});
settings.add(`SAML_Custom_${ name }_public_cert`, '', {
type: 'string',
@ -67,6 +68,7 @@ Meteor.methods({
section: name,
multiline: true,
i18nLabel: 'SAML_Custom_Private_Key',
secret: true,
});
settings.add(`SAML_Custom_${ name }_button_label_text`, '', {
type: 'string',

@ -39,6 +39,7 @@ settings.add = function(_id, value, options = {}) {
options.valueSource = 'packageValue';
options.hidden = options.hidden || false;
options.blocked = options.blocked || false;
options.secret = options.secret || false;
if (options.sorter == null) {
options.sorter = settings._sorter[options.group]++;
}

@ -19,6 +19,7 @@ Meteor.startup(function() {
},
i18nLabel: 'SlackBridge_APIToken',
i18nDescription: 'SlackBridge_APIToken_Description',
secret: true,
});
this.add('SlackBridge_FileUpload_Enabled', true, {

@ -19,6 +19,7 @@ settings.addGroup('Smarsh', function addSettings() {
type: 'string',
i18nLabel: 'Smarsh_Email',
placeholder: 'email@domain.com',
secret: true,
});
this.add('Smarsh_MissingEmail_Email', 'no-email@example.com', {
type: 'string',

@ -32,6 +32,7 @@ Meteor.startup(function() {
value: 'twilio',
},
i18nLabel: 'Account_SID',
secret: true,
});
this.add('SMS_Twilio_authToken', '', {
type: 'string',
@ -40,6 +41,7 @@ Meteor.startup(function() {
value: 'twilio',
},
i18nLabel: 'Auth_Token',
secret: true,
});
});
@ -51,6 +53,7 @@ Meteor.startup(function() {
value: 'voxtelesys',
},
i18nLabel: 'Auth_Token',
secret: true,
});
this.add('SMS_Voxtelesys_URL', 'https://smsapi.voxtelesys.net/api/v1/sms', {
type: 'string',
@ -59,6 +62,7 @@ Meteor.startup(function() {
value: 'voxtelesys',
},
i18nLabel: 'URL',
secret: true,
});
});
});

@ -14,6 +14,7 @@ settings.addGroup('OAuth', function() {
type: 'string',
enableQuery,
public: true,
secret: true,
});
this.add('Accounts_OAuth_Wordpress_id', '', {
type: 'string',
@ -22,6 +23,7 @@ settings.addGroup('OAuth', function() {
this.add('Accounts_OAuth_Wordpress_secret', '', {
type: 'string',
enableQuery,
secret: true,
});
this.add('Accounts_OAuth_Wordpress_server_type', '', {
type: 'select',

Loading…
Cancel
Save