Registration doesn't prefill the invited email for modal and REDCap invites
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 4
- 派生
- 0
- 平均合并
- 14 小时 50 分钟
- 30 天内合并 PR
- 5
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Garvan-Data-Science-Platform/ctrl 的其他 Issue
-
难度 1/5 1-3 小时 新手友好度 82/100
-
admin-client backend bug
难度 2/5 1-3 小时 新手友好度 76/100
-
backend bug
难度 2/5 1-3 小时 新手友好度 68/100
Garvan-Data-Science-Platform/ctrl#970 · 1 条评论 ·
-
backend bug
难度 2/5 1-3 小时 新手友好度 72/100
-
backend bug
难度 2/5 1-3 小时 新手友好度 78/100
查看 Garvan-Data-Science-Platform/ctrl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
status:approved type:bug
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
stage:4
难度 2/5 1-3 小时 新手友好度 65/100
ilan-pinto/roaring-lions#598 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Frontmatter next to `src:` is applied to every imported slide, not only the first (undocumented)未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复