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 02cabb0..829d918 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