default user settings?



  • is there a way to set default settings for new users? i'd like to enable privacy, email notifications, automatic follow created topics, sounds, ecc by default



  • i've resolved this by adding this code to my custom sso login plugin (https://community.nodebb.org/topic/3322/jsconnect-sso)

    User.setSetting(uid, 'dailyDigestFreq', 'week', null);
    User.setSetting(uid, 'notificationSounds', 1, null);
    User.setSetting(uid, 'followTopicsOnCreate', 1, null);
    User.setSetting(uid, 'followTopicsOnReply', 1, null);
    User.setSetting(uid, 'sendChatNotifications', 1, null);

Log in to reply
 

Suggested Topics

| |