Skip to content

Commit

Permalink
make magic link otp code logging consistent with other otp logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alkesh committed Oct 30, 2024
1 parent e02f2f9 commit 6000ea4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/mailers/claim_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def early_years_payment_provider_email(claim, one_time_password, email)
magic_link: @magic_link
}

if Rails.env.development?
Rails.logger.info("\n\nEmail verification code: #{one_time_password}\n")
end

send_mail(template_ids(claim)[:CLAIM_PROVIDER_EMAIL_TEMPLATE_ID], personalisation)
end

Expand Down

0 comments on commit 6000ea4

Please sign in to comment.