Account locked temporarily Issues?
-
@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:
-
@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:
I again try today to reset password i went to http://127.0.0.1:4567/reset and set the password :
But however i don't get any e-mail password resent.
after that opened redis cmd but strangly this time i got many uids !!:
Help it pains. -
@julian i follow ur advice and it was for the 1st successfully login.
But sadly after when i logout and restart redis server & nodebb from gitshell and used the same password but again login problem appears!!!
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.......... -
Account locked temporarily Issues
nodebb - http://89.45.14.20:4567/
redis-2.8.13- http://89.45.14.20:4567/reset - send password request
- [root@example ~]# redis-cli
- 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
- 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.
redis-cli
to enter the redis console. If redis is installed on a different port, host, or socket, use -p, -h, and -s respectivelyhgetall 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 rundb.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