Treat email addresses that differ only in letter case as the same closes #666 #686
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
security
technical improvement
UX Improvement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
local-it/mitgliederverwaltung!686
Loading…
Reference in a new issue
No description provided.
Delete branch "issue/mitgliederverwaltung-666"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #666
Description of the implemented changes
The changes were:
Email addresses:
Lea@example.organdlea@example.orgare one address everywhere a member or join request is looked up or checked, so no second member, no duplicate join request and no linked account can slip in through a different letter case, while addresses stay stored and shown as entered.What has been changed?
Definition of Done
Code Quality
Accessibility
Testing
Additional Notes
Mv.Membership.EmailMatchis the one place that decides whether two addresses are the same (Ash expression, query filter, member lookup, in-memory check). The join flow, the join request page, the account–member email validation and the linking suggestion use it.VICTIM@xmust not receive mail or a confirmation link meant forvictim@x. Tests send the variant and check the recipient.lower(email)(members_unique_email_lower_index, reported as "has already been taken" onemail). The exact unique index stays, because the seeds upsert members withON CONFLICT (email).Release: 1.6.0 (wave 1).
Proposed news entry (for the release file once #683 is merged):
Lea@example.organdlea@example.orgas the same address, so members, join requests and accounts can no longer be duplicated through a different spelling.