diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-02-28 10:49:59 +0100 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:40:41 +0200 |
commit | c1281982bd7975b45bed5b8e2c5ef5e242ea18fd (patch) | |
tree | a4a76d4cd9ab0d4ca324902355fa60ced1ecdb9b /app/services/notification_service.rb | |
parent | f0fe1b9d4397e6c1c6aa2da6e371e234db774fe2 (diff) | |
download | gitlab-ce-c1281982bd7975b45bed5b8e2c5ef5e242ea18fd.tar.gz |
notification email on add new gpg key
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 3a98a5f6b64..b94921d2a08 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -17,6 +17,16 @@ class NotificationService end end + # Always notify the user about gpg key added + # + # This is a security email so it will be sent even if the user user disabled + # notifications + def new_gpg_key(gpg_key) + if gpg_key.user + mailer.new_gpg_key_email(gpg_key.id).deliver_later + end + end + # Always notify user about email added to profile def new_email(email) if email.user |