Programming question - Possible to have a custom function to create a user?
-
Hello, I have a client who wishes to have a forum software, but he already has another service that handles accounts for his other apps. What he wishes is when someone registers through his service, that a forum account will be automatically created, with the database ID, same as the ID provided by his service, not auto incrementing.
Is it possible to achieve something like this with nodeBB?
I think I've found a way, probably I could create a custom plugin and use the user.create hook, to create a custom user.
-
In previous thread calling the API to create user was mentioned too
https://community.nodebb.org/topic/9186/programatically-create-usersFrom the docs
-
I don't think the API is what I need, I want to manually set the account uid and as I read the docs, I can't pass that to the api, so I will try coding own plugin.
-
Look up the session sharing plugin or sso plugin.