Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
how to set logged in user programatically?
Hi,
In settings I have session time set for 14 days. But many users have a problem that they are being logged out every day. I also need to log in every single day.
Where I can look for the issue ?
It only returns a subset of user data https://github.com/NodeBB/NodeBB/blob/master/src/posts/user.js#L24-L28
If you want to add more you can do so in a plugin, using the hook filter:posts.modifyUserInfo
@bansri You need to install sendmail on your server if you are getting this error. Error: spawn sendmail ENOENT
Alright, thanks guys.
The user.isAdministrator function was what I was looking for.
@a_5mith That's awesome!