Ignore exceptions when sending email to confirm changes of email
address. Closes #2744.
This commit is contained in:
parent
45cf5ccd29
commit
b547145865
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue