We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b17f35 commit 406edd7Copy full SHA for 406edd7
1 file changed
admin/admin.class.php
@@ -952,6 +952,15 @@ public function SaveCustomProfileFields( $user_id ) {
952
953
update_user_meta( $user_id, 'wpga_secret', $_POST['wpga_secret'] );
954
955
+ /**
956
+ * Delete the user login attempts without using 2FA.
957
+ * This avoids an incorrect number of allowed attempts
958
+ * in case the user deactivates the 2FA for his account.
959
+ *
960
+ * @since 1.0.8
961
+ */
962
+ delete_user_meta( $user_id, 'wpga_attempts' );
963
+
964
/* Check if backup key exist */
965
$backup = get_user_meta( $user_id, 'wpga_backup_key', true );
966
0 commit comments