Login Error After Exceeding Flood Control Attempts

Created on 21 November 2024, 27 days ago

Problem/Motivation

After exceeding the flood control login attempts, the login form displays the following error:
"Error: Call to a member function getAccountName() on null in Drupal\email_tfa\Form\EmailTfaLoginForm->emailTfaLoginFormRedirect()"

Steps to reproduce

1. Enable the email_tfa module.
2. Attempt to log in to the site with incorrect credentials more than 5 times (depending on the user_limit attempts you have configured).

Proposed resolution

Check the $form_state->get('uid') flag within the emailTfaLoginFormRedirect method, similar to how it's handled in the parent submitForm method.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024