If there's an exception thrown when trying to send an email to a user in live mode when their password has been changed, the new password does not get saved.
Bug two
No issue open
When using the password recovery functionality ("I've lost my password"), if an exception is thrown when trying to send the recovery email, the whole page just breaks.
Instead of that, the user should be given a user-friendly error message, and the cause of the error should be logged.
Notes
With bug one specifically, there is some weird side-effect to logging the error which causes the success toast to be red (so it looks like a failure toast), and the page doesn't reload. But the new password is saved, so I'm raising a separate issue to look into that side effect. The bug this PR fixes is about saving the password value, and that bug is fixed with this PR.
This PR fixes two related bugs.
For both bugs, this PR logs the error, but lets code execution continue Note that there are two ways this exception can occur:
admin_url
is not a valid email address, soRfcComplianceException
is thrownTransportExceptionInterface
is thrownBug one
If there's an exception thrown when trying to send an email to a user in live mode when their password has been changed, the new password does not get saved.
Bug two
No issue open
When using the password recovery functionality ("I've lost my password"), if an exception is thrown when trying to send the recovery email, the whole page just breaks.
Instead of that, the user should be given a user-friendly error message, and the cause of the error should be logged.
Notes