Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login field is case sensitive and untrimmed #2939

Closed
krav opened this issue May 8, 2024 · 2 comments · Fixed by #2952
Closed

Login field is case sensitive and untrimmed #2939

krav opened this issue May 8, 2024 · 2 comments · Fixed by #2952
Assignees
Labels
enhancement New feature or request

Comments

@krav
Copy link

krav commented May 8, 2024

I'm trying out Casdoor, and getting complaints from a significant percentage of users having trouble logging in.

Particularly people register with "email@example.com" only to later try to log in as "Email@example.com" or "email@example.com "--and getting rejected as a non-existent account. Sometimes they proceed to try and register again, being told that the account already exists.

Can we add optionally downcasing and trimming the username field?

(Using postgres as a backing database btw, this is possibly case insensitive in others?)

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the question Further information is requested label May 8, 2024
@hsluoyz hsluoyz added enhancement New feature or request and removed question Further information is requested labels May 12, 2024
@hsluoyz
Copy link
Member

hsluoyz commented May 12, 2024

Use the existing config:

isUsernameLowered = false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants