FIX: Remove activation link from account approved email (#5548)
This commit is contained in:
parent
a08832bd08
commit
f85055d653
|
@ -22,7 +22,6 @@ class UserNotifications < ActionMailer::Base
|
|||
build_email(user.email,
|
||||
template: 'user_notifications.signup_after_approval',
|
||||
locale: user_locale(user),
|
||||
email_token: opts[:email_token],
|
||||
new_user_tips: I18n.t('system_messages.usage_tips.text_body_template', base_url: Discourse.base_url, locale: locale))
|
||||
end
|
||||
|
||||
|
|
|
@ -1096,8 +1096,7 @@ class User < ActiveRecord::Base
|
|||
if SiteSetting.must_approve_users
|
||||
Jobs.enqueue(:critical_user_email,
|
||||
type: :signup_after_approval,
|
||||
user_id: id,
|
||||
email_token: email_tokens.first.token
|
||||
user_id: id
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2836,8 +2836,8 @@ en:
|
|||
|
||||
A staff member approved your account on %{site_name}.
|
||||
|
||||
Click the following link to confirm and activate your new account:
|
||||
%{base_url}/u/activate-account/%{email_token}
|
||||
You can now access your new account by logging in at:
|
||||
%{base_url}
|
||||
|
||||
If the above link is not clickable, try copying and pasting it into the address bar of your web browser.
|
||||
|
||||
|
|
Loading…
Reference in New Issue