Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Alternative Contact email accepts the same value as the user's own email

未关闭 适合新手
#916 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
69/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript

调研方向

从 application/user-client/src/pages/Register.tsx 中的注册表单开始,跟踪其两个电子邮件字段的提交和验证方式;然后检查 issue 中提到的注册服务端验证。确保参与者和备用联系人的电子邮件必须不同,并验证提交相同的电子邮件会被拒绝,而不同的电子邮件仍然可用。

由索引模型根据 Issue 内容生成。

描述

bug user-client

The Alternative Contact section on the participant registration form in application/user-client/src/pages/Register.tsx accepts the same email as the user's own email. Both save through registration and appear on the personal details page.

For context: this field is labelled "Alternative Contact" in the UI, stored as AlternativeContact in the DB and referenced as nextOfKin in code. It's used as an emergency/backup contact for the participant. Just a data-hygiene: having your own email as your emergency/alternate contact means the study team has no meaningful way to reach the participant through the backup channel if their primary email is unreachable.

Suggested fix: server/client-side validation on submit that the two email fields must differ.

Image Image
主要语言
TypeScript
星标
4
派生
0
平均合并
14 小时 50 分钟
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Garvan-Data-Science-Platform/ctrl 的其他 Issue

查看 Garvan-Data-Science-Platform/ctrl 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。