summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 09:08:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 09:08:17 +0000
commit375c6d54dd85bfdf4be302c9cdac088a58b64c59 (patch)
treef803cce0a2234e68bc550c7768c603aa6cbe49d3 /app/mailers
parentda92a12093920ecd79d9979a29d987157dd0ef78 (diff)
downloadgitlab-ce-375c6d54dd85bfdf4be302c9cdac088a58b64c59.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/profile.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/mailers/emails/profile.rb b/app/mailers/emails/profile.rb
index 65ea90d0b5d..ede6007e0e2 100644
--- a/app/mailers/emails/profile.rb
+++ b/app/mailers/emails/profile.rb
@@ -94,12 +94,13 @@ module Emails
end
end
- def access_token_revoked_email(user, token_name)
+ def access_token_revoked_email(user, token_name, source = nil)
return unless user&.active?
@user = user
@token_name = token_name
@target_url = profile_personal_access_tokens_url
+ @source = source
Gitlab::I18n.with_locale(@user.preferred_language) do
mail_with_locale(to: @user.notification_email_or_default, subject: subject(_("A personal access token has been revoked")))