MyBB Community Forums
Admin lockout after 5 attempts - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Admin lockout after 5 attempts (/thread-146198.html)



Admin lockout after 5 attempts - stewartrose - 10-03-2013

Good Morning Team,

It appears when I get this message:-

Your account is currently locked out after failing to login 5 times. You have been sent an email with instructions on how to unlock your account.

I dont get an email most likely my fault Smile

So two questions please where did I miss putting the email in the settings
and how do I fix the problem please

This is the latest version of mybb

All the best from Alan


RE: Admin lockout after 5 attempts - alanrobinsonleigh - 10-03-2013

Hi Alan.

If you have access to your mysql db in your server run this query to reset your password to test

UPDATE `mybb_users` SET `password` = '098f6bcd4621d373cade4e832627b4f6', `salt` = '' WHERE `uid` = 'X' 

Change the X for your user id which if you were the first member will be 1

Then you can try to log in using your username and the test password. if you manage to get in please please change your password to a secure one you can remember.

to change the admin email. go to phpadmin in your server, click mybb_settings and look for "Admin Email" and click edit. then enter your email address and click save.

that should sort everything out.


RE: Admin lockout after 5 attempts - stewartrose - 10-03-2013

(10-03-2013, 10:48 AM)alanrobinsonleigh Wrote: Hi Alan.

If you have access to your mysql db in your server run this query to reset your password to test

UPDATE `mybb_users` SET `password` = '098f6bcd4621d373cade4e832627b4f6', `salt` = '' WHERE `uid` = 'X' 

Change the X for your user id which if you were the first member will be 1

Then you can try to log in using your username and the test password. if you manage to get in please please change your password to a secure one you can remember.

to change the admin email. go to phpadmin in your server, click mybb_settings and look for "Admin Email" and click edit. then enter your email address and click save.

that should sort everything out.

Thank you for the information, I did try that before, I think the username and password are fine, I even did it via the forgotten password section, it is almost like like a time out setting..

All the best from Alan


RE: Admin lockout after 5 attempts - Matt - 10-03-2013

Try this:

UPDATE `mybb_adminoptions` SET `loginattempts` = '0', `loginlockoutexpiry` = '0' WHERE `uid` = 'X';

Change X to your UID.

It should just email the address you have set for your account, do you know if other emails from your site get sent?


RE: Admin lockout after 5 attempts - stewartrose - 10-03-2013

(10-03-2013, 11:29 AM)Matt. Wrote: Try this:

UPDATE `mybb_adminoptions` SET `loginattempts` = '0', `loginlockoutexpiry` = '0' WHERE `uid` = 'X';

Change X to your UID.

It should just email the address you have set for your account, do you know if other emails from your site get sent?

Hi there yes I changed the X to Admin

The email works for forgotten password, but the lockout 5 attempts no email is sent...

All the best from Alan


RE: Admin lockout after 5 attempts - alanrobinsonleigh - 10-03-2013

(10-03-2013, 02:02 PM)stewartrose Wrote:
(10-03-2013, 11:29 AM)Matt. Wrote: Try this:

UPDATE `mybb_adminoptions` SET `loginattempts` = '0', `loginlockoutexpiry` = '0' WHERE `uid` = 'X';

Change X to your UID.

It should just email the address you have set for your account, do you know if other emails from your site get sent?

Hi there yes I changed the X to Admin

The email works for forgotten password, but the lockout 5 attempts no email is sent...

All the best from Alan

did you cahnge it to the word Admin or the UID of 1


RE: Admin lockout after 5 attempts - Matt - 10-03-2013

User ID, not username Smile


RE: Admin lockout after 5 attempts - stewartrose - 10-04-2013

(10-03-2013, 02:08 PM)alanrobinsonleigh Wrote:
(10-03-2013, 02:02 PM)stewartrose Wrote:
(10-03-2013, 11:29 AM)Matt. Wrote: Try this:

UPDATE `mybb_adminoptions` SET `loginattempts` = '0', `loginlockoutexpiry` = '0' WHERE `uid` = 'X';

Change X to your UID.

It should just email the address you have set for your account, do you know if other emails from your site get sent?

Hi there yes I changed the X to Admin

The email works for forgotten password, but the lockout 5 attempts no email is sent...

All the best from Alan

did you cahnge it to the word Admin or the UID of 1

Well done, this one fixed the problem thank you....

All the best from Alan