Skip to content

Commit

Permalink
Chore: Fix some settings with incompatible default value types (#26114)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc authored and csuarez committed Aug 26, 2022
1 parent 768d59d commit 0d2e2b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/app/cas/server/cas_rocketchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Meteor.startup(function () {
});

this.section('CAS_Login_Layout', function () {
this.add('CAS_popup_width', '810', { type: 'int', group: 'CAS', public: true });
this.add('CAS_popup_height', '610', { type: 'int', group: 'CAS', public: true });
this.add('CAS_popup_width', 810, { type: 'int', group: 'CAS', public: true });
this.add('CAS_popup_height', 610, { type: 'int', group: 'CAS', public: true });
this.add('CAS_button_label_text', 'CAS', { type: 'string', group: 'CAS' });
this.add('CAS_button_label_color', '#FFFFFF', { type: 'color', group: 'CAS' });
this.add('CAS_button_color', '#1d74f5', { type: 'color', group: 'CAS' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export const addSettings = function (name: string): void {
i18nDescription: 'SAML_Default_User_Role_Description',
});

this.add(`SAML_Custom_${name}_allowed_clock_drift`, false, {
this.add(`SAML_Custom_${name}_allowed_clock_drift`, 0, {
type: 'int',
invalidValue: 0,
i18nLabel: 'SAML_Allowed_Clock_Drift',
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/server/settings/ldap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ settingsRegistry.addGroup('LDAP', function () {
});

this.add('LDAP_Host', '', { type: 'string', enableQuery });
this.add('LDAP_Port', '389', { type: 'int', enableQuery });
this.add('LDAP_Port', 389, { type: 'int', enableQuery });
this.add('LDAP_Reconnect', false, { type: 'boolean', enableQuery });

this.add('LDAP_Login_Fallback', false, { type: 'boolean', enableQuery });
Expand Down

0 comments on commit 0d2e2b1

Please sign in to comment.