summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-02-28 10:49:59 +0100
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 15:40:41 +0200
commitc1281982bd7975b45bed5b8e2c5ef5e242ea18fd (patch)
treea4a76d4cd9ab0d4ca324902355fa60ced1ecdb9b /app/mailers
parentf0fe1b9d4397e6c1c6aa2da6e371e234db774fe2 (diff)
downloadgitlab-ce-c1281982bd7975b45bed5b8e2c5ef5e242ea18fd.tar.gz
notification email on add new gpg key
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/profile.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/mailers/emails/profile.rb b/app/mailers/emails/profile.rb
index 256cbcd73a1..4580e1c83bd 100644
--- a/app/mailers/emails/profile.rb
+++ b/app/mailers/emails/profile.rb
@@ -22,5 +22,15 @@ module Emails
@target_url = user_url(@user)
mail(to: @user.notification_email, subject: subject("SSH key was added to your account"))
end
+
+ def new_gpg_key_email(gpg_key_id)
+ @gpg_key = GpgKey.find_by_id(gpg_key_id)
+
+ return unless @gpg_key
+
+ @current_user = @user = @gpg_key.user
+ @target_url = user_url(@user)
+ mail(to: @user.notification_email, subject: subject("GPG key was added to your account"))
+ end
end
end