Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Oct 24, 2024
1 parent cacfbae commit 5682885
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/meteor/app/authentication/server/startup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ import { safeGetMeteorUser } from '../../../utils/server/functions/safeGetMeteor
import { isValidAttemptByUser, isValidLoginAttemptByIp } from '../lib/restrictLoginAttempts';

Accounts.config({
defaultFieldSelector: getBaseUserFields(),
forbidClientAccountCreation: true,
});

Accounts._defaultPublishFields = { ...Accounts._defaultPublishFields, ...getBaseUserFields() };

Meteor.startup(() => {
settings.watchMultiple(['Accounts_LoginExpiration', 'Site_Name', 'From_Email'], () => {
Accounts._options.loginExpirationInDays = getLoginExpirationInDays(settings.get('Accounts_LoginExpiration'));
Expand Down

0 comments on commit 5682885

Please sign in to comment.