Repository navigation
Feature: fix/email-lookup-case to dev - #617
Merged
Merged
Conversation
The admin grant, manual check-in by email and the ban list lowercased the typed address and matched it exactly, assuming every row was stored lowercase. Three production users are not, so they could not be found by email. Match on lower(email), which the new case-insensitive unique index serves.
Contributor
Author
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Contributor
Author
|
Visit the preview URL for this PR (updated for commit dcd1a9b): https://hacklyticss2026--pr-617-l9ghyrz7.web.app (expires Sat, 21 Nov 2026 23:21:09 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 5d238be33273095766c18a8339b7b0c47de8a950 |
Contributor
Author
|
Visit the preview URL for this PR (updated for commit dcd1a9b): https://hacklytics2027--pr-617-9a8ij23m.web.app (expires Sat, 21 Nov 2026 23:21:19 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c48ba34db61581e25fe2978355160b5eefe0e83f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated PR tracking changes from
fix/email-lookup-caseintodev.Note
Low Risk
Narrow query-shape changes on existing admin/scanner paths; behavior is more permissive (finds users that were previously missed) with index-backed lookups.
Overview
Staff flows that resolve users by email now compare with
lower()on the stored address as well as the input, instead of assuming everyusers.emailrow is already lowercased.This updates admin
findUserByEmail, eventsmanualCheckIn, and hackathon bans list enrichment so mixed-case legacy accounts still match; comments point atuser_email_lower_unique_idxfor query support.Reviewed by Cursor Bugbot for commit dcd1a9b. Bugbot is set up for automated code reviews on this repo. Configure here.