So I have a customer that forgot there password, and apparently not receiving the password reset email. Gmail issue I think as they blacklist everything to junk folders. So I manually changed the password in the admin area, and then they tried again and got locked out for 1hr. After 1hr it seems the lock is still on. I then marked their account as "Safe", which I believe avoids the login checks but still can't login and getting the locked for 1hr message.
Using 3.0.3.8
1) If the registered email starts with an uppercase letter and they attempt to login with lowercase, does that matter?
2) If "Safe" is enabled, is that supposed to avoid the 1hr lock?
3) Where in the database would I edit to remove the lick if I went that route.
For now I will increase the login attempts to see if we can get into the account.
Thanks
Using 3.0.3.8
1) If the registered email starts with an uppercase letter and they attempt to login with lowercase, does that matter?
2) If "Safe" is enabled, is that supposed to avoid the 1hr lock?
3) Where in the database would I edit to remove the lick if I went that route.
For now I will increase the login attempts to see if we can get into the account.
Thanks
Last edited by MajorPain on Tue Jul 02, 2024 7:41 pm, edited 1 time in total.
MajorPain wrote: ↑Tue Jul 02, 2024 12:15 amSo I have a customer that forgot there password, and apparently not receiving the password reset email. Gmail issue I think as they blacklist everything to junk folders. So I manually changed the password in the admin area, and then they tried again and got locked out for 1hr. After 1hr it seems the lock is still on. I then marked their account as "Safe", which I believe avoids the login checks but still can't login and getting the locked for 1hr message.
Using 3.0.3.8
1) If the registered email starts with an uppercase letter and they attempt to login with lowercase, does that matter?
2) If "Safe" is enabled, is that supposed to avoid the 1hr lock?
3) Where in the database would I edit to remove the lick if I went that route.
For now I will increase the login attempts to see if we can get into the account.
Thanks
- It doesn't matter - the username is case-insensitive. If you look at the "addLoginAttempt" function in "admin/model/user/user.php", you will see that the username is transformed to all lowercase before inserting the record into the database. Also, OpenCart performs an SQL query to validate the log in attempt and MySQL is case-insensitive for string comparisons, therefore, case does not matter for username.
- Nope, it's not for avoiding the 1 hour lock. If I didn't remember wrongly, the "safe" option is for the anti-fraud feature - so customers with the "Safe" option enabled will not be blocked by the anti-fraud system.
- Login attempts are stored in the "customer_login" table - this is shared by both customer logins and admin logins. If you take a look at the "validate" function in "admin/controller/common/login.php", you will see that it checks whether or not the username has exceeded the number of tries for logging in and if it has, it will compare between the time now and the time that the login attempt database record was last modified. You can probably remove that to prevent the lock. Alternatively, you can also clear the records from the "customer_login" table to reset the login attempts count as well.
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
Thanks.
I increased the number of login attempts which allowed for the customer to login using my preset password and change their password.
I left it for 2hrs and then set it back to 5 attempts and we should have resolved the issue.
I increased the number of login attempts which allowed for the customer to login using my preset password and change their password.
I left it for 2hrs and then set it back to 5 attempts and we should have resolved the issue.
Great! So please add [SOLVED] to the start of this post title.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Legendary Member
Who is online
Users browsing this forum: jog2le and 19 guests