Replies: 2 comments
-
|
I've tried on several big services like GitHub, and they do not treat Gmail addresses differently. You can very well register another account by adding a dot inside the address. Same for the "+" alias. I'm not really favorable to blocking that behavior by default. It's quite similar to websites that want to block temporary email addresses. If you want to prevent multiple Gmail accounts, I suggest you add your own logic by overloading the fastapi-users/fastapi_users/manager.py Lines 110 to 147 in c0c4da9 |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, it seems fair |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
FastAPI Users doesn't correctly handle Gmail addresses with dots. Gmail treats addresses with and without dots as the same (e.g.,
[email protected]and[email protected]are identical), but FastAPI Users allows creating separate accounts for these variations. This can lead to security and user management issues.To Reproduce
Steps to reproduce the behavior:
[email protected].[email protected].Expected behavior
FastAPI Users should recognize that Gmail addresses with different dot placements are equivalent and prevent the creation of duplicate accounts. When attempting to create an account with a Gmail address that's identical except for dot placement, it should either:
Configuration
Python version: 3.12
FastAPI version: 0.111.0
FastAPI Users version: 13.0.0
Additional context
[email protected]).Beta Was this translation helpful? Give feedback.
All reactions