Closed defung closed 4 years ago
I don't know rust too well, but I suspect this needs some equalsIgnoreCase
type of thing here:
https://github.com/dani-garcia/bitwarden_rs/blob/master/src/api/core/two_factor/duo.rs#L286
Yeah, I already tested a fix.
Thanks for the quick fix, @jjlin and @dani-garcia! When can we expect the new docker image to be released?
The :latest tag should finish building in an hour or two, and a new numbered release on the weekend probably.
Subject of the issue
When logging in with DUO 2FA configured, login fails if email entered is not all lowercase.
Your environment
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: