diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 09:08:17 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 09:08:17 +0000 |
commit | 375c6d54dd85bfdf4be302c9cdac088a58b64c59 (patch) | |
tree | f803cce0a2234e68bc550c7768c603aa6cbe49d3 /app/mailers | |
parent | da92a12093920ecd79d9979a29d987157dd0ef78 (diff) | |
download | gitlab-ce-375c6d54dd85bfdf4be302c9cdac088a58b64c59.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/profile.rb | 3 |
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"))) |