Skip to content

Commit

Permalink
Merge pull request #2708 from alphagov/truncate-event-log-user-email-…
Browse files Browse the repository at this point in the history
…string

Truncate EventLog#user_email_string to prevent exceptions
  • Loading branch information
floehopper authored Feb 12, 2024
2 parents a89aa8d + a4a392f commit 75381ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def log_event
EventLog::NO_SUCH_ACCOUNT_LOGIN,
ip_address: user_ip_address,
user_agent_string: user_agent,
user_email_string: email,
user_email_string: email.truncate(255),
)
end
end
Expand Down

0 comments on commit 75381ad

Please sign in to comment.