Repository navigation
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.
Feature: fix/email-lookup-case to dev
Contributor
Author
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 8f2af03): https://hacklyticss2026--pr-618-wexzenz2.web.app (expires Sat, 21 Nov 2026 23:24:38 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 5d238be33273095766c18a8339b7b0c47de8a950 |
Contributor
Author
|
Visit the preview URL for this PR (updated for commit 8f2af03): https://hacklytics2027--pr-618-wlbvbrh0.web.app (expires Sat, 21 Nov 2026 23:24:35 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
devintomain.Note
Low Risk
Targeted query predicate changes on read paths; no auth or schema changes, with lower risk of missed matches than false positives.
Overview
Email lookups now compare case-insensitively against legacy user rows that may still store mixed-case addresses, instead of assuming every
users.emailvalue is already lowercased.Admin
findUserByEmail, eventmanualCheckIn, and hackathonlistBansuser resolution now usesqllower(${users.email})`` (with lowercased input or ban emails) so staff flows still find accounts when casing differs. Comments note this is intended to align withuser_email_lower_unique_idx.Reviewed by Cursor Bugbot for commit 8f2af03. Bugbot is set up for automated code reviews on this repo. Configure here.