Ignore exceptions when sending email to confirm changes of email

address. Closes #2744.
This commit is contained in:
Tom Hughes 2010-02-25 19:09:28 +00:00
parent 45cf5ccd29
commit b547145865

View 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