Update confirmation email wording (#20806)

This commit is contained in:
Philip How 2024-03-28 15:10:26 +00:00 committed by GitHub
parent 2c0c4460e7
commit eb452078e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -19,4 +19,10 @@ class DeviseMailer < Devise::Mailer
super(record, token, opts.merge(headers))
end
# rubocop:enable Style/OptionHash
def confirmation_instructions(record, token, opts = {})
@name = record.name
opts[:subject] = "#{@name}, confirm your #{Settings::Community.community_name} account"
super
end
end

View file

@ -1,7 +1,7 @@
<% if @user.creator? %>
<%= render partial: "creator_confirmation_instructions", locals: { url: confirmation_url(@resource, confirmation_token: @token) } %>
<% else %>
<p>Welcome <%= @email %>!</p>
<p>Welcome <%= @name %>!</p>
<p>You can confirm your account email through the link below:</p>