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);default avatar
-
hi guys,
at first i want to say great job! nodeBB is very nice!i have a question, how is it possible to give every new user the same avatar?
I have one png. every user should get this when they register.Thanks
-
Hi @fredrik ,
You can do what you want by writing a plugin. You can use the hook
action:user.create
this is called after a user is created and it is passed the user data. In there you can set the userspicture
anduploadedpicture
properties to your png image. -
@baris thanks for your reply. I will try this.