backend: always update `last_verification_sent_at` column after trying to send email
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: unknwon
Our code logic for calculating email sending cooldown consults the value of the user_emails.last_verification_sent_at
column, however, if the email didn't get sent in the first place due to any reason, the column is NULL, and resend is impossible. The user would have to first remove and re-add the same email.
Fixes https://github.com/sourcegraph/sourcegraph/issues/36632
Manul e2e test and unit test.
"email.smtp"
(simulate email sending failures)
Push commits to the source branch or add previously merged commits to review them.