-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes 500 in /api/auth/activate/{verification_key} API
When an `email_code` is present in the Contact db record, `VerifyCompleteMixin.prefetch_contact_info` would add it to `initial_data`, which then would propagate that `email_code` to `clean_data` and trigger a call to `finalize_email_verification`. As `VerifyCompleteMixin.create_user` is called after `auth_check_mfa`, at the point we attempt to `activate_user`, there would be no record with the verification_key URL argument in the database.
- Loading branch information
Showing
4 changed files
with
119 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters