mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix confirmation e-mails when signing up through an app (#29064)
This commit is contained in:
parent
3c315a68af
commit
1666b19559
1 changed files with 1 additions and 3 deletions
|
@ -8,9 +8,7 @@
|
||||||
%td.email-inner-card-td.email-prose
|
%td.email-inner-card-td.email-prose
|
||||||
%p= t @resource.approved? ? 'devise.mailer.confirmation_instructions.explanation' : 'devise.mailer.confirmation_instructions.explanation_when_pending', host: site_hostname
|
%p= t @resource.approved? ? 'devise.mailer.confirmation_instructions.explanation' : 'devise.mailer.confirmation_instructions.explanation_when_pending', host: site_hostname
|
||||||
- if @resource.created_by_application
|
- if @resource.created_by_application
|
||||||
= render 'application/mailer/button', text: t('settings.account_settings'), url: edit_user_registration_url
|
= render 'application/mailer/button', text: t('devise.mailer.confirmation_instructions.action_with_app', app: @resource.created_by_application.name), url: confirmation_url(@resource, confirmation_token: @token, redirect_to_app: 'true')
|
||||||
= link_to confirmation_url(@resource, confirmation_token: @token, redirect_to_app: 'true') do
|
|
||||||
%span= t 'devise.mailer.confirmation_instructions.action_with_app', app: @resource.created_by_application.name
|
|
||||||
- else
|
- else
|
||||||
= render 'application/mailer/button', text: t('devise.mailer.confirmation_instructions.action'), url: confirmation_url(@resource, confirmation_token: @token)
|
= render 'application/mailer/button', text: t('devise.mailer.confirmation_instructions.action'), url: confirmation_url(@resource, confirmation_token: @token)
|
||||||
%p= t 'devise.mailer.confirmation_instructions.extra_html', terms_path: about_more_url, policy_path: privacy_policy_url
|
%p= t 'devise.mailer.confirmation_instructions.extra_html', terms_path: about_more_url, policy_path: privacy_policy_url
|
||||||
|
|
Loading…
Reference in a new issue