Skip to content

Instantly share code, notes, and snippets.

@JoelLisenby
Last active April 29, 2024 23:07
Show Gist options
  • Save JoelLisenby/089564d9d1a85004bba44b1dc848c68f to your computer and use it in GitHub Desktop.
Save JoelLisenby/089564d9d1a85004bba44b1dc848c68f to your computer and use it in GitHub Desktop.
Reset 2FA Grace Period in WordFence from the database/phpmyadmin

If you find yourself locked out due to no 2FA, but you have access to your WordPress database you can increase your WordFence 2FA grace period by following the instructions below.

Needed items:

  • Your user ID (find in the wp_users table)
  1. Go to phpmyadmin, view the wp_usermeta table.
  2. Do a search for meta_key = wfls-grace-period-reset and user_id = [your user id]
  3. Update the value of this row to a future unix timestamp like now + 3600 seconds to give you a 1 hour grace period.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment