Closed mishaschwartz closed 9 months ago
Is the wrong UserService
used somewhere?
This implementation that overrides and extends by_user_name
should be used instead:
https://github.com/Ouranosinc/Magpie/blob/c6909c18aa1bd8c6ea548fead484edc404eb5b19/magpie/models.py#L434
Oh, never mind. I just saw the super(UserSearchService, cls).by_user_name(...)
call.
@fmigneault I've added a PR to fix this here: https://github.com/Ouranosinc/Magpie/pull/596
I don't know if you saw it buy I'm not a member or this github organization so I can't request a reviewer
@fmigneault I've added a PR to fix this here: #596
I don't know if you saw it buy I'm not a member or this github organization so I can't request a reviewer
@mishaschwartz You have write access to this repo now. For future PR, you can push directly to this repo, no need to use your fork anymore.
Describe the bug
Ziggurat foundation converts usernames to lowercase before looking them up in the database: https://github.com/ergo/ziggurat_foundations/blob/0.9.1/ziggurat_foundations/models/services/user.py#L326-L328
This means:
To Reproduce Steps to reproduce the behavior:
Expected behavior
Users whose usernames differ in terms of capitalization only, should be treated as distinct users in all parts of the application, including logins.