Add user via API
-
Hello everyone,
I have tried adding a user to nodebb using the API. However, there are some complications according to my use case:
When adding a user following the instructions with a username, email, the email status is always unconfirmed. Therefore, the user cannot use the 'forgot email' for the password. (Password can only be reset after confirming the email).
However, this is the list of old members. How can I add old members so that their emails are already in a confirmed status? Thank you everyone.
-
@chipvn you'll want to validate their emails with a separate call
https://docs.nodebb.org/api/write/#tag/users/paths/~1users~1{uid}~1emails~1{email}~1confirm/post
When a user is created with an email we send a validation email so they can be independently verified.