-
-
Notifications
You must be signed in to change notification settings - Fork 677
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 /login
issue causing wrong device list updates
#2922
Conversation
Codecov ReportBase: 36.48% // Head: 36.58% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2922 +/- ##
==========================================
+ Coverage 36.48% 36.58% +0.09%
==========================================
Files 494 494
Lines 54656 54658 +2
==========================================
+ Hits 19940 19995 +55
+ Misses 32146 32104 -42
+ Partials 2570 2559 -11
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make PasswordRequest.Username()
return the lower-cased correct username by default please. Then add something like .RawUsername()
for matching when there is no matching user.
I'm currently not seeing the benefit of that. With that we'd need to actually take care of those cases where we use |
The benefit is that you don't need to set the field (or forget to set the field..), and it makes it clear what is processed/validated input vs untrusted/potentially invalid input. When verifying the account exists, we are forced unfortunately to check both, but then once this check has been done then code which just wants to know the username can just call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After talking it through, LGTM
Fixes #2914 and possibly #2073?