Skip to content

Commit

Permalink
Clear the employee-email slug on form failure so it is not bypassed
Browse files Browse the repository at this point in the history
  • Loading branch information
vacabor committed Oct 1, 2024
1 parent aa1116e commit 6dc0bd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/claims_form_callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ def check_your_answers_after_form_save_success
create_and_save_claim_form
end

def employee_email_after_form_save_failure
session[:slugs].delete("employee-email")
render_template_for_current_slug
end

private

def set_backlink_override_to_current_slug
Expand Down

0 comments on commit 6dc0bd9

Please sign in to comment.