Registration doesn't prefill the invited email for modal and REDCap invites
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 58/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- authentication, backend
Piste de recherche
Start with application/user-client/src/pages/Register.tsx:103 and trace how registration uses the response from GET /invites/{inviteId}/prefill; then inspect the endpoint and invite data it reads. The issue says to use the invite's own email when the stored prefill lacks one, while considering the unauthenticated-link concern and related #954. Verify that modal and REDCap invites prefill the email and that existing prefill values are preserved.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
When an admin invites someone from the invite modal or through a REDCap import, the registration page opens with the email field empty. The participant has to type the address the invite went to, and registration looks the invite up by its ID and that email together (application/backend/src/controllers/AuthController.ts:211), so a typo fails with "Invite for … not found".
Register fills the email only from the invite's prefill (application/user-client/src/pages/Register.tsx:103), and GET /invites/{inviteId}/prefill returns the stored prefill as it is.
- The invite modal's prefill only carries
studyParticipant.externalId(application/admin-client/src/components/InviteModal.tsx:49,:87,:228). - The REDCap import removes the email before it builds the prefill (
application/backend/src/controllers/IntegrationsController.ts:340). - The CSV import keeps
profile.emailin the prefill (application/admin-client/src/pages/participants/list.tsx:479-485), so that path should already prefill, though I haven't checked it in a browser. #937 currently removes it from the CSV prefill too.
Fix: have the prefill endpoint fill in the invite's own email when the stored prefill has none, so every invite path gets it. The endpoint needs no login, so this adds the email to what an invite link shows, the same concern as #954. If #954 adds an email check before the form, carry the checked email into the form instead.
Related: #937, #954.
- Langage dominant
- TypeScript
- Étoiles
- 4
- Forks
- 0
- Merge moyen
- 14 h 50 min
- PR mergées (30 j)
- 5
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Garvan-Data-Science-Platform/ctrl
-
Difficulté 1/5 1-3 heures Accessibilité débutants 82/100
-
admin-client backend bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
backend bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Garvan-Data-Science-Platform/ctrl#970 · 1 commentaire ·
-
backend bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
backend bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Toutes les issues de Garvan-Data-Science-Platform/ctrl
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
melgarafael/DeskcommCRM#3000 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
callstackincubator/simlock#639 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
aws/agentcore-cli#2606 ·
Les mainteneurs répondent en général sous 1 jour
-
🐛 [BUG] - FeatureComparisonTable text-only cells are top-aligned while icon cells are centeredOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 7 jours
-
ai-driven-qa bug Cosmetic
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 1 jour