beyond-all-reason / teiserver

Middleware server for online gaming
https://www.beyondallreason.info/
MIT License
46 stars 46 forks source link

Delete email code if email sending fails during registration #310

Closed geekingfrog closed 1 month ago

geekingfrog commented 1 month ago

To reproduce:

Observed behaviour:

There is one row in account_codes for the newly created account.

Expected behaviour:

no code in the table account_codes should be present for the account just created. Teiserver should rollback/delete it.

This is a follow up from: https://github.com/beyond-all-reason/teiserver/issues/289 which only handled password reset.