From f9f467227538df0ce2012df39dfdcf55fb260f94 Mon Sep 17 00:00:00 2001 From: Brett Walker Date: Mon, 4 Sep 2017 19:23:33 +0200 Subject: Send a confirmation email when the user adds a secondary email address. Utilizes the Devise `confirmable` capabilities. Issue #37385 --- lib/api/users.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/api/users.rb') diff --git a/lib/api/users.rb b/lib/api/users.rb index bdebda58d3f..8b44639dd7d 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -329,7 +329,6 @@ module API email = Emails::CreateService.new(user, declared_params(include_missing: false)).execute if email.errors.blank? - NotificationService.new.new_email(email) present email, with: Entities::Email else render_validation_error!(email) @@ -675,7 +674,6 @@ module API email = Emails::CreateService.new(current_user, declared_params).execute if email.errors.blank? - NotificationService.new.new_email(email) present email, with: Entities::Email else render_validation_error!(email) -- cgit v1.2.1