Skip to content

Commit

Permalink
Merge pull request #26 from Tibo-Ulens/fix/update-email-verification
Browse files Browse the repository at this point in the history
update users email when they re-request a verification code
  • Loading branch information
Tibo-Ulens authored Jan 6, 2023
2 parents c022339 + 481ded2 commit 90bce03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot/extensions/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ async def verify_email(self, ia: Interaction, email: str):
self.bot.logger.info(VerifyEvent.CodeResetRequest(ia.user, email))

profile.confirmation_code = verification_code
# Users might have mistyped their email, update it just in case
profile.email = email
await profile.save()

self.send_confirmation_email(email, verification_code)
Expand Down

0 comments on commit 90bce03

Please sign in to comment.