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

Fix SSO bug for email addresses with capital letters #198

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Conversation

tdooner
Copy link
Contributor

@tdooner tdooner commented Aug 21, 2024

Ticket

N/A - Needed for NYC to log in for dynamic security scan.

Changes

Devise will convert the email field to lowercase, as configured by
config.case_insensitive_keys. When searching for an account, we need to
use Devise's find_for_authentication method so it will apply the same
transformation.

Context for reviewers

N/A

Testing

Regression test included. I also tested logging into an existing account as
well as a new account to verify it works.

Devise will convert the `email` field to lowercase, as configured by
config.case_insensitive_keys. When searching for an account, we need to
use Devise's `find_for_authentication` method so it will apply the same
transformation.
@allthesignals allthesignals self-requested a review August 21, 2024 17:22
@tdooner tdooner merged commit 5f098d5 into main Aug 21, 2024
13 checks passed
@tdooner tdooner deleted the td/fix-sso-bug branch August 21, 2024 17:55
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.

2 participants