Fix broken invitation email text template
Some checks failed
Some checks failed
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:
@@ -1,8 +1,8 @@
|
||||
You've been invited to join Clinch!
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user