Closed Bertg closed 7 months ago
Thanks for this. The test is especially helpful. It passes both with the fix here and the fix I posted in https://github.com/jeremyevans/rodauth/issues/376#issuecomment-1854136723. I'm thinking of combining the two, that way we can skip the query in sms_remove_failures
if the sms still needs confirmation.
@jeremyevans Your call on how to proceed.
For me the main thing I wanted to achieve here is writing the test, as that unambiguously proved the issue.
I think the quick return in sms_remove_failures
is good, but can be combined with the conditional update from your patch, so that any race condition in the future would also be covered.
I'll apply your changes - as I see them - to this PR.
@jeremyevans Updated PR is here ☝️
This is a possible simple fix for #376