Skip to content

Commit

Permalink
docs: Document why only application email is updated, not borrower em…
Browse files Browse the repository at this point in the history
…ail, closes #386
  • Loading branch information
jpmckinney committed Aug 22, 2024
1 parent b6fd7de commit 6c853a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/routers/guest/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ async def confirm_email(
detail=_("Not authorized to modify this application"),
)

# The email address for the Borrower instance is not updated, because, between invitations, the borrower might
# have updated their email address in the data source. Borrowers typically change the email address to direct
# messages to the responsible person (who might be different from the general contact in the data source).
application.primary_email = new_email
application.pending_email_confirmation = False
application.confirmation_email_token = ""
Expand Down

0 comments on commit 6c853a1

Please sign in to comment.