Skip to content

fix: login email should be case insensitive #1911

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

DubMythlit
Copy link

fix #1744
By query email in lower case makes login be case insensitive now
tested on: Postgres12 & sqlite3

email: email
email: sequelize.where(
sequelize.fn('LOWER', sequelize.col('email')),
'LIKE',
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to use LIKE operator here, compare directly will be fine.

@jackycute
Copy link
Member

Hi @Dubmyhtlit,

Thanks for your PR,
Please also sign off your commit like this:

commit message

Signed-off-by: XXX <[email protected]>

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

Successfully merging this pull request may close these issues.

email lowercase
2 participants