Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Registration doesn't prefill the invited email for modal and REDCap invites

Ouverte
#965 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

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

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

admin-client backend question

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.email in 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

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Garvan-Data-Science-Platform/ctrl

Toutes les issues de Garvan-Data-Science-Platform/ctrl

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.