Update confirmation email wording (#20806)
This commit is contained in:
parent
2c0c4460e7
commit
eb452078e3
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue