Org Web Adapter

hungryroot/jira/be_7144_normalize_signup_email_before_auth_authenticate_to_avoid_login_metric_drop_offs.org

ID
315f4883-6503-40a0-8190-a270d6bcb83a

BE-7144 Normalize signup email before auth.authenticate to avoid login/metric drop-offs

- source :: https://hungryroot.atlassian.net/browse/BE-7144

- tags :: Hungryroot API Project

- epic :: EP-411 Eng Parking Lot

- sprint :: HR BE Sprint 104

- status :: Status - To Do

Description

create_customer() lowercases the stored username/email (email =

kwargs["email"].lower()), but SignupView.perform_create authenticates using the

raw submitted email (serializer.validated_data["email"]). If auth is

case-sensitive or normalization differs, auth/login can fail post-create,

preventing Datadog metrics.

Acceptance criteria

Authentication uses normalized email consistent with stored username.

Add test coverage for mixed-case signup email ensuring auth/login succeeds and

metric emits.

Notes: This is a likely silent source of “DB created, metric missing” when users

type uppercase letters.