Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lockout failing for AZ #187437777 #4506

Merged
merged 5 commits into from May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/controllers/state_file/intake_logins_controller.rb
Expand Up @@ -73,10 +73,10 @@ def intake_login_params
def increment_failed_attempts_on_login_records
contact_info = params[:portal_verification_code_form][:contact_info]
intake_classes = client_login_service.intake_classes
intake_classes.each do |intake_class|
@records = intake_class.where(email_address: contact_info).or(intake_class.where(phone_number: contact_info))
@records.map(&:increment_failed_attempts)
@records = intake_classes.flat_map do |intake_class|
intake_class.where(email_address: contact_info).or(intake_class.where(phone_number: contact_info))
end
@records.map(&:increment_failed_attempts)
end

def request_login_form_class
Expand Down