@Simos said in Forcing UID value:
https://github.com/SimosNap/nodebb-plugin-login-anope/blob/master/library.js#L116
it look it can't change email what's wrong ?
Does nodebb make some check on invalid emails ?
Is there a clean way to get the currently logged in user's uid from a plugin? A search didn't seem to turn up a consensus.
@bbb in what context? A hook? A route handler? A client side script?
A hook. Specifically, action:post.setFields at the moment, but I'll need it for other hooks as well.
@pitaj Im also searching for how to get the current uid for use in a plugin hook method.
Depending on the plugin hook, the uid
is included in the payload.