Skip to content
Snippets Groups Projects

Issue #2981326: Replace non-test usages of \Drupal::logger() with IoC injection

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
210 210 $form_state->set('flood_control_user_identifier', $identifier);
211 211
212 // Don't allow login if the limit for this user has been reached.
213 // Default is to allow 5 failed attempts every 6 hours.
214 if (!$this->userFloodControl->isAllowed('user.failed_login_user', $flood_config->get('user_limit'), $flood_config->get('user_window'), $identifier)) {
215 $form_state->set('flood_control_triggered', 'user');
216 return;
212 // If there are zero flood records for this user, then we don't need to
213 // clear any failed login attempts after a successful login, so check
214 // for this case first before checking the actual flood limit and store
215 // the result in form state.
216 if (!$this->userFloodControl->isAllowed('user.failed_login_user', 1, $flood_config->get('user_window'), $identifier)) {
217 // Now check the actual limit for the user. Default is to allow 5
218 // failed attempts every 6 hours. This means we check the flood table
219 // twice if flood control has already been triggered by a previous
220 // login attempt, bu this should be the less common case.
  • Hardik Patel added 1808 commits

    added 1808 commits

    Compare with previous version

  • Hardik Patel added 21 commits

    added 21 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading