Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing organization_siret in datapass login params payload #463

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

florimondmanca
Copy link
Collaborator

Refs #388 (comment)

Le loginWithDatapass ne lisait pas le query param organization_siret, dès lors on avait dans le front userInfo.account.organizationSiret === null, ce qui provoquait des pb comme celui relevé par Johan.

Pour réduire le risque de répétition de ce pb à l'avenir, le front reçoit désormais les infos utilisateur dans un AuthenticatedUserView encodé en JSON, qu'il passe directement à toAccount(), comme pour loginWithPassword.

@florimondmanca florimondmanca added bug Something isn't working front staging le code de cette PR est présente sur la staging labels Oct 4, 2022
@florimondmanca florimondmanca merged commit ef3e6c5 into master Oct 4, 2022
@florimondmanca florimondmanca deleted the fm/datapass-contribute branch October 4, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front staging le code de cette PR est présente sur la staging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants