registration: perform proper identifier verification (#79865) #108

Merged
pmarillonnet merged 1 commits from wip/79865-phone-authn-email-verification-bug into main 2023-08-14 14:08:12 +02:00
Owner
No description provided.
pmarillonnet changed title from WIP: registration: perform proper identifier verification (#79865) to registration: perform proper identifier verification (#79865) 2023-08-07 14:54:53 +02:00
Author
Owner

J’ai laissé le .set_email_verified(True, source='registration') ajouté à une époque où on voyait FranceConnect comme une source sûre pour le courriel, et où on souhaitait différencier la vérification qui en résultait de celle issue d’une création locale de compte. Ce n’est plus forcément le cas, ce sera peut-être à retirer dans un autre ticket, je ne sais pas encore, je laisse ça là en attendant.

J’ai laissé le `.set_email_verified(True, source='registration')` ajouté à une époque où on voyait FranceConnect comme une source sûre pour le courriel, et où on souhaitait différencier la vérification qui en résultait de celle issue d’une création locale de compte. Ce n’est plus forcément le cas, ce sera peut-être à retirer dans un autre ticket, je ne sais pas encore, je laisse ça là en attendant.
pmarillonnet changed title from registration: perform proper identifier verification (#79865) to WIP: registration: perform proper identifier verification (#79865) 2023-08-07 14:59:32 +02:00
Author
Owner

Typo dans le test, terrible, je corrige.

Typo dans le test, terrible, je corrige.
pmarillonnet force-pushed wip/79865-phone-authn-email-verification-bug from dd455f4b53 to 84045e86e6 2023-08-07 15:02:59 +02:00 Compare
pmarillonnet changed title from WIP: registration: perform proper identifier verification (#79865) to registration: perform proper identifier verification (#79865) 2023-08-07 15:03:02 +02:00
vdeniaud approved these changes 2023-08-07 15:19:24 +02:00
vdeniaud left a comment
Owner

Je laisse deux commentaires pour expliciter ma compréhension des lignes pas directement en lien avec l'objet du ticket, à part ça nickel.

Je laisse deux commentaires pour expliciter ma compréhension des lignes pas directement en lien avec l'objet du ticket, à part ça nickel.
@ -1783,3 +1783,3 @@
if hasattr(self, 'email'):
attributes['email'] = self.email
if hasattr(self, 'phone'):
Owner

Et ici il y avait une ligne inutile.

Et ici il y avait une ligne inutile.
@ -1815,2 +1813,4 @@
init_kwargs[key] = attributes[key]
kwargs['instance'] = get_user_model()(**init_kwargs)
# phone identifier is a separate attribute and is set post user-creation
if hasattr(self, 'phone'):
Owner

OK donc il y avait un deuxième bug, où le numéro de tel n'était lui pas marqué comme vérifié.

OK donc il y avait un deuxième bug, où le numéro de tel n'était lui pas marqué comme vérifié.
pmarillonnet force-pushed wip/79865-phone-authn-email-verification-bug from 84045e86e6 to fa45f190d0 2023-08-14 10:32:24 +02:00 Compare
pmarillonnet force-pushed wip/79865-phone-authn-email-verification-bug from 68c74a7fd4 to c317cf6a9b 2023-08-14 14:07:48 +02:00 Compare
pmarillonnet merged commit c317cf6a9b into main 2023-08-14 14:08:12 +02:00
pmarillonnet deleted branch wip/79865-phone-authn-email-verification-bug 2023-08-14 14:08:12 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: entrouvert/authentic#108
No description provided.