Account locked temporarily Issues?



  • at my local pc i run radis & nodebb on gitshell
    ones i visit my local host page:
    BrowserScreen.jpg
    I use my username & password (which i used at NodeBB community) it shows lock:
    lockScreen.jpg

    i also read
    Your account has been locked temporarily
    lost admin password
    But still need proper directions.
    BTW My online NodeBB user account working Fine.
    i also forgot my admin password that i used during installation.So what should i do.How to recover same password.

    later on i follow the steps suggested by admin :

    1. Go to http://127.0.0.1:4567/reset, and send yourself a reset password request. Doesn't matter if no emailer is installed.
    2. Run the redis command line (redis-cli), and execute this query: hkeys reset:uid, copy the LAST result returned.
    3. Go to http://127.0.0.1:4567/reset/{that_code}, and reset your password.
      To unlock a locked account, and you know your uid:
      redis-cli DEL lockout:YOUR_UID

    but i m still facing lock issue:
    stilllocked.jpg
    i need help on this.


  • Admin

    @himadree

    1. Go to http://127.0.0.1:4567/reset, and send yourself a reset password request. Doesn't matter if no emailer is installed.
    2. Run the redis command line (redis-cli), and execute this query: hkeys reset:uid, copy the LAST result returned
    3. Go to http://127.0.0.1:4567/reset/{that_code}, and reset your password.

    To unlock a locked account, and you know your uid:
    redis-cli DEL lockout:YOUR_UID



  • @julian for more clarification My online NodeBB user account working Fine. But this lock problem is from my localhost.so i guess u understand.

    i follow the steps u mentioned and use redis command prompt to use redis-cli but still its locked:
    lockScreen.jpg


  • Admin

    @himadree What does redis-cli KEYS lockout:* show?



  • @julian i am still facing serious difficulties on user login at my local host.last day as u suggest i follow your steps but nothing happened its showing invalid password.But the password was correct:
    day2invalidpass.jpg
    I again try today to reset password i went to http://127.0.0.1:4567/reset and set the password :
    day2resetpass.jpg
    But however i don't get any e-mail password resent.
    after that opened redis cmd but strangly this time i got many uids !!:
    day2rediscmd.jpg
    Help it pains.


  • Admin

    After you run the hkeys command, you need to copy the last key shown. Then you have to go to the following url:

    http://127.0.0.1:4567/reset/f864daa6-af80... (the rest of the key)

    That will let you reset the password.



  • @julian i follow ur advice and it was for the 1st successfully login.

    day2passreset.jpg

    But sadly after when i logout and restart redis server & nodebb from gitshell and used the same password but again login problem appears!!!
    day2same_prob.jpg

    Am i misunderstanding it? Does it needs new logins every time i open nodebb at my localhost??
    please clarify me.
    WHAT is going on!!! it is so disappointing.please help. I am so tired of posting many screenshots..........


  • Admin

    @himadree So it worked the first time, but after restarting redis/nodebb, the login stopped working? That's quite weird.



  • @julian let me know u get any clue to resolve this problem.


  • Admin

    @himadree I cannot confirm that this is a bug, so I'm unable to help you... it seems like your Redis database is unable to persist properly to disk. Perhaps you can inspect the log files in Redis for some clues.



  • Account locked temporarily Issues
    nodebb - http://89.45.14.20:4567/
    redis-2.8.13

    1. http://89.45.14.20:4567/reset - send password request
    2. [root@example ~]# redis-cli
    3. redis 127.0.0.1:6379> hkeys reset:uid,
    • (empty list or set) -What could be wrong?


  • @AndrewStark Password reset doesn't unlock the account (there's an issue on github about it, don't think it's closed yet)

    You need to do redis-cli DEL lockout:YOUR_UID

    Then to reset your password

    1. Go to /reset and key in your email. It won't send out the password reset email, but a key will be generated. This key expires after 2 hours.
    2. redis-cli to enter the redis console. If redis is installed on a different port, host, or socket, use -p, -h, and -s respectively
    3. hgetall reset:uid, and locate the reset id corresponding to your uid Go to yoururl/reset/{reset-uid}


  • reinstalled everything, now writes:

    Your account has been locked temporarily



  • I use mongo so I have to follow a different approach to unlock my account
    launch your mongo cli, switch to the nodebb db and run

    db.objects.remove({"_key":"lockout:YOUR_UID"})
    

    uid is usually 1 for admin

    If you don't know what your uid is you can run

    db.objects.remove({"_key": { $regex: /lockout:.*/ }})
    

    to unlock all locked accounts

    Becareful when doing this as I'm not sure if it would have any other side effects I'm not aware of. It's only meant to be a quick way restore order if you keep locking yourself out during dev


 

| |