Not able to login wordpress because i am not getting email of the 2FA code

Posted December 17, 2021 111 views

Hi ,

I tried to log in to my account, but I’m not getting any 2FA code in my mail. (I have checked the spam folder but didn’t get anything)
The email listed in Users> Two-Factor Options is correct. The email option is also enabled and is set as Primary.
I have been waiting for 1 hour and still didn’t receive any code in my mail.

Please help me getting the code as I’m not able to login to my website. Or, if you could uninstall the plugin, it would be great.

Please help me

Thanks in advance

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


All DigitalOcean Droplets are unmanaged meaning that we do not have access to your servers and website files.

You could access your server via SSH and disable the plugin manually by renaming the 2FA plugin folder or using the wpcli tool to disable the plugin.

You can follow the steps on how to connect to your server via SSH here:

Let me know how it goes.