dograh/api/db
developer603 acc2ef9e96
fix: make email lookup case-insensitive in get_user_by_email (#397)
* fix: make email lookup case-insensitive in get_user_by_email

Email addresses are case-insensitive in practice, but get_user_by_email
compared with an exact `UserModel.email == email` predicate. A user who
signed up as "User@example.com" could not be found when logging in as
"user@example.com" (and vice-versa), so the same person could fail to log
in — or be treated as a brand-new account — depending only on how their
client capitalized the address.

Compare on `func.lower(UserModel.email) == func.lower(email)` so lookups
are robust to capitalization. Minimal and backwards-compatible: it works
with existing mixed-case rows immediately, with no migration required.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix: enforce case-insensitive user emails

---------

Co-authored-by: developer603 <vrramsolutions@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
2026-06-02 13:43:20 +05:30
..
__init__.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
agent_trigger_client.py fix: make trigger paths globally unique 2026-04-25 19:44:44 +05:30
api_key_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
base_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
campaign_client.py chore: return formatted transcript url 2026-05-26 13:24:12 +05:30
database.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
db_client.py feat: add google stt and tts. add folders to organize agents 2026-05-22 14:36:50 +05:30
embed_token_client.py fix: add error in cloudonix cdr report 2026-01-29 20:43:53 +05:30
filters.py fix: number pool initialization in multi telephony setup 2026-05-08 14:48:53 +05:30
folder_client.py feat: add google stt and tts. add folders to organize agents 2026-05-22 14:36:50 +05:30
integration_client.py feat: add agent skills to review PR (#320) 2026-05-19 17:02:26 +05:30
knowledge_base_client.py feat: add full document mode in knowledge base 2026-04-09 13:49:20 +05:30
models.py fix: make email lookup case-insensitive in get_user_by_email (#397) 2026-06-02 13:43:20 +05:30
organization_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
organization_configuration_client.py feat: custom telemetry configuration 2026-03-23 11:36:39 +05:30
organization_usage_client.py chore: return formatted transcript url 2026-05-26 13:24:12 +05:30
reports_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30
telephony_configuration_client.py feat: add telnyx webhook api key in telephony config (#270) 2026-05-09 18:03:42 +05:30
telephony_phone_number_client.py feat: agent stream for cloudonix OPBX (#261) 2026-05-02 15:53:58 +05:30
tool_client.py feat: add end_call tool (#118) 2026-01-14 16:40:40 +05:30
user_client.py fix: make email lookup case-insensitive in get_user_by_email (#397) 2026-06-02 13:43:20 +05:30
webhook_credential_client.py Feat/Add API Trigger and Webhooks in Agent Builder (#83) 2025-12-22 14:08:30 +05:30
workflow_client.py feat: add google stt and tts. add folders to organize agents 2026-05-22 14:36:50 +05:30
workflow_recording_client.py feat: allow recordings in tool transitions 2026-04-10 16:18:01 +05:30
workflow_run_client.py feat: add chat based testing for voice agent (#308) 2026-05-21 15:20:02 +05:30
workflow_run_text_session_client.py feat: add chat based testing for voice agent (#308) 2026-05-21 15:20:02 +05:30
workflow_template_client.py Initial Commit 🚀 🚀 2025-09-09 14:37:32 +05:30