mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #955] DUO 2FA - login fails if email is not lowercase #680
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#680
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @defung on GitHub (Apr 7, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/955
Subject of the issue
When logging in with DUO 2FA configured, login fails if email entered is not all lowercase.
Your environment
1.14.1-843604c9
Steps to reproduce
Expected behaviour
From what I understand, email shouldn't be required to be all lowercase. Without DUO, we are able to login using mixed uppercase and lowercase email. But with DUO enabled, we are forced to use lowercase email.
Actual behaviour
With DUO enabled, users cannot login using mixed case emails. Users are forced to enter lower case email, even though the user registered with mixed case emails initially.
Relevant logs
AJAX call received HTTP 400 error:
docker log output:
@defung commented on GitHub (Apr 8, 2020):
I don't know rust too well, but I suspect this needs some
equalsIgnoreCasetype of thing here:https://github.com/dani-garcia/bitwarden_rs/blob/master/src/api/core/two_factor/duo.rs#L286
@jjlin commented on GitHub (Apr 8, 2020):
Yeah, I already tested a fix.
@defung commented on GitHub (Apr 8, 2020):
Thanks for the quick fix, @jjlin and @dani-garcia! When can we expect the new docker image to be released?
@dani-garcia commented on GitHub (Apr 8, 2020):
The :latest tag should finish building in an hour or two, and a new numbered release on the weekend probably.