Skip to content

fix: correct implementation for email validation on login - #5945

Closed
matthewelwell wants to merge 1 commit into
mainfrom
fix/correct-email-validation-on-login
Closed

fix: correct implementation for email validation on login#5945
matthewelwell wants to merge 1 commit into
mainfrom
fix/correct-email-validation-on-login

Conversation

@matthewelwell

@matthewelwell matthewelwell commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

Changes

This is a re-implementation of #5848 , but I need to verify with @Zaimwa9 what the reason for the original implementation is at it seems unnecessary to me.

How did you test this code?

Updated / added unit tests.

@matthewelwell
matthewelwell requested a review from a team as a code owner August 20, 2025 10:42
@matthewelwell
matthewelwell requested review from gagantrivedi and removed request for a team August 20, 2025 10:42
@vercel

vercel Bot commented Aug 20, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs Ignored Ignored Aug 20, 2025 10:42am
flagsmith-frontend-preview Ignored Ignored Aug 20, 2025 10:42am
flagsmith-frontend-staging Ignored Ignored Aug 20, 2025 10:42am

@matthewelwell
matthewelwell requested review from Zaimwa9 and removed request for gagantrivedi August 20, 2025 10:42
@github-actions github-actions Bot added api Issue related to the REST API fix labels Aug 20, 2025
@github-actions

github-actions Bot commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-5945 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-5945 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-5945 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-5945 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-5945 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-5945 Finished ✅ Results

)


class CustomTokenCreateSerializer(TokenCreateSerializer): # type: ignore[misc]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it just needs to be added to the view to pass
serializer_class = CustomTokenCreateSerializer

Thanks for jumping on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants