A platform for community discussion. Free, open, simple.
FIX: Remove activation link from account approved email (#5548)
Joshua Rosenfeldf85055d653b8
diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rbindex 236acc0dabd..17260a5d8e1 100644--- a/app/mailers/user_notifications.rb+++ b/app/mailers/user_notifications.rb@@ -22,7 +22,6 @@ class UserNotifications < ActionMailer::Basebuild_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))enddiff --git a/app/models/user.rb b/app/models/user.rbindex 1d4283659e6..464d3fe9d78 100644--- a/app/models/user.rb+++ b/app/models/user.rb@@ -1096,8 +1096,7 @@ class User < ActiveRecord::Baseif SiteSetting.must_approve_usersJobs.enqueue(:critical_user_email,type: :signup_after_approval,- user_id: id,- email_token: email_tokens.first.token+ user_id: id)endenddiff --git a/config/locales/server.en.yml b/config/locales/server.en.ymlindex 603f92adc06..c32b730f3fc 100644--- a/config/locales/server.en.yml+++ b/config/locales/server.en.yml@@ -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.