diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-28 21:07:58 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-28 21:07:58 +0000 |
commit | fcfe959a5ddee652a27e6b1179a116fdbb70986b (patch) | |
tree | 4dbcf2a93aaaf4952507207168c582f5948efaa3 /app/mailers | |
parent | 7f3f19582b13b4162212bcf0ae72eef63685ffbc (diff) | |
download | gitlab-ce-fcfe959a5ddee652a27e6b1179a116fdbb70986b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/emails/profile.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/mailers/emails/profile.rb b/app/mailers/emails/profile.rb index c27e181ebd6..65ea90d0b5d 100644 --- a/app/mailers/emails/profile.rb +++ b/app/mailers/emails/profile.rb @@ -94,6 +94,18 @@ module Emails end end + def access_token_revoked_email(user, token_name) + return unless user&.active? + + @user = user + @token_name = token_name + @target_url = profile_personal_access_tokens_url + + 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"))) + end + end + def ssh_key_expired_email(user, fingerprints) return unless user&.active? |