]> git.openstreetmap.org Git - rails.git/commitdiff
Ignore exceptions when sending email to confirm changes of email
authorTom Hughes <tom@compton.nu>
Thu, 25 Feb 2010 19:09:28 +0000 (19:09 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 25 Feb 2010 19:09:28 +0000 (19:09 +0000)
address. Closes #2744.

app/controllers/user_controller.rb

index 02cabb01073e215a51c2fb557bb77545bd3aea49..829d918c86e36e7d426c17dbef38b991c9fb138d 100644 (file)
@@ -67,7 +67,12 @@ class UserController < ApplicationController
           flash.now[:notice] = t 'user.account.flash update success'
         else
           flash.now[:notice] = t 'user.account.flash update success confirm needed'
-          Notifier.deliver_email_confirm(@user, @user.tokens.create)
+
+          begin
+            Notifier.deliver_email_confirm(@user, @user.tokens.create)
+          rescue
+            # Ignore errors sending email
+          end
         end
       end
     else