As the opencart admin, I enabled two factor authentication. I did not think enabling it would immediately block me from using the admin account until the pin was sent and entered in the field. After saving, it immediately requests a code which gets sent to my (correctly entered) email, but as opencart is installed in a vm, I cannot receive it. I don't want to connect the vm to the internet just yet and while I've played around with postfix and mailutils hoping to catch the email being sent in a mailbox, I haven't had any luck yet.
I've tried looking at the opencart database tables for any settings related to 2fa and I found some mail settings in oc_settings (where oc_ is the default prefix), but no two-auth.
I cannot access my admin account until 2fa is disabled/reverted or I start over. How can I recover my account / what settings do I need to change and where to disable 2fa? Thank you in advance.
Opencart 4.0.2.2
PHP 8.1.16
I've tried looking at the opencart database tables for any settings related to 2fa and I found some mail settings in oc_settings (where oc_ is the default prefix), but no two-auth.
I cannot access my admin account until 2fa is disabled/reverted or I start over. How can I recover my account / what settings do I need to change and where to disable 2fa? Thank you in advance.
Opencart 4.0.2.2
PHP 8.1.16
Since you have access to your database, simply go to the "setting" table, and search for "config_security" under the "key" column. Simply delete the entire row and 2FA should be disabled. Alternatively, you could run the following SQL query:AwesomeSoap wrote: ↑Tue Aug 29, 2023 7:21 amAs the opencart admin, I enabled two factor authentication. I did not think enabling it would immediately block me from using the admin account until the pin was sent and entered in the field. After saving, it immediately requests a code which gets sent to my (correctly entered) email, but as opencart is installed in a vm, I cannot receive it. I don't want to connect the vm to the internet just yet and while I've played around with postfix and mailutils hoping to catch the email being sent in a mailbox, I haven't had any luck yet.
I've tried looking at the opencart database tables for any settings related to 2fa and I found some mail settings in oc_settings (where oc_ is the default prefix), but no two-auth.
I cannot access my admin account until 2fa is disabled/reverted or I start over. How can I recover my account / what settings do I need to change and where to disable 2fa? Thank you in advance.
Opencart 4.0.2.2
PHP 8.1.16
Code: Select all
DELETE FROM oc_setting WHERE `key` = 'config_security'
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.
Hi, I am having the same problem, but I am not familiar with open cart database tables. Is that something I can find in cPanel? Like in the file manager? Thank you. Sorry I’m a newbie.
Last edited by teachableginger on Mon Apr 15, 2024 10:55 pm, edited 1 time in total.
You can use phpMyAdmin under Databases in cPanel to see and modify your databases.teachableginger wrote: ↑Sun Apr 14, 2024 10:29 amHi, I am having the same problem, but I am not familiar with open cart database tables. Is that something I can find in cPanel? Like in the file manager? Thank you. Sorry I’m a newbie.
Great! Now that it is working please add '[SOLVED]' to the beginning of your forum thread title.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I added it this time as the OP didn't.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Who is online
Users browsing this forum: johnp and 7 guests