My admin user profile "doesnt exist"

Technical Support
  • Hi, i had 2 users with the same name (for test purpose, facebook and google auth) and when i deleted the normal one, my profile was deleted for the first user...


    Can anyone give me a hint how to recover my profile page?

    Just updated last version of nodebb v0.8.x and im using mongodb

  • Hmm, that sounds like a bug, you shouldn't be able to create two users with the same name.

    When you delete the account, it removes it's entry in the 'userslug:uid' set which that route uses to lookup your profile info, as well as a bunch of other sets. But it doesn't delete your user object at 'user:{uid}' (because your other account has a different uid). You would have to re-add your username to the sets it's removed from in user.delete. I'm unfortunately not sure the exact command you would have to use in mongod though. 😞 You should be able to find your original users uid in /api/users though. 🐦 Renaming the account from the acp may also work.

Suggested Topics

  • 0 Votes
    1 Posts

    Hi, is it possible to extend the user data model writing a new (custom) attribute by POST /api/v3/users/ and then retrive it by GET /api/users? Thanks in advance

  • 0 Votes
    1 Posts

    I build my website base on nodebb.
    I have group Facebook and now i want to build a tool crawl all question from group to my website.
    In my VPS i have upgrade nodebb 1.14x to 1.18.4.
    But i cannot generate token to use v3/api of nodebb.
    Call API: POST
    (5866 is my uid admin account) but got forbidden like picture below:
    Is that issue about CORS or session, admin setting?
    I found some docs talk about 2 type token (master and user token) but i not really understand them. Please help me make a sample to call my API create topic or post by Request package npm.

    Thank you a lot.


  • 0 Votes
    1 Posts
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14), code=ETIMEDOUT, errno=ETIMEDOUT, syscall=connect, address=, port=443

  • 0 Votes
    1 Posts

    Hi nodebb-Community,

    I'm using a customized shell script to manage 3 nodebb environments (local/staging/production). This is helping to integrate and customize private modules on the server, etc. - and activates/resets default modules for our setup.

    Now I wonder how to go about "default settings" - e. g. I want to get sure the site-name is consistent everywhere - or vice versa, set it dynamically depending on the environment.

    Does nodebb has an API for setting settings through shell?
    Or would I need to go through the mongo shell?

  • 0 Votes
    2 Posts

    crap, i forgot to activate the google+ api 😛