Fix broken invitation email text template
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / scan_container (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

The text part used non-existent helpers (`invite_url`,
`@user.invitation_login_token`) and Ruby string interpolation in an ERB
file, so multipart delivery failed at render time and no invite mail
went out. Mirror the HTML template instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dan Milne
2026-05-02 23:39:29 +10:00
parent 5178cf3d81
commit e39721c7e6

View File

@@ -1,8 +1,8 @@
You've been invited to join Clinch! You've been invited to join Clinch!
To set up your account and create your password, please visit: To set up your account and create your password, please visit:
#{invite_url(@user.invitation_login_token)} <%= invitation_url(@user.generate_token_for(:invitation_login)) %>
This invitation link will expire in #{distance_of_time_in_words(0, @user.invitation_login_token_expires_in)}. This invitation link will expire in 24 hours.
If you didn't expect this invitation, you can safely ignore this email. If you didn't expect this invitation, you can safely ignore this email.