Fixed #35530 -- Deprecated request.user fallback in auth.login.
Trac ticket number
ticket-35530
Branch description
Removed request.user fallback logic in auth.login. There is no clear reason for it to exist, hasn't been tested until recently (through the async wraper) and is confusing at best.
Checklist
- [x] This PR targets the
mainbranch. - [x] The commit message is written in past tense, mentions the ticket number, and ends with a period.
- [x] I have checked the "Has patch" ticket flag in the Trac system.
- [x] I have added or updated relevant tests.
- [ ] I have added or updated relevant docs, including release notes if applicable.
- [ ] I have attached screenshots in both light and dark modes for any UI changes.
Thanks Mariusz, does that mean that this is acceptable? Should I add the deprecation to the release notes?
Thanks @nessita, I'm a bit busy at the moment, have to find some time to get to this
Thanks @nessita, I'm a bit busy at the moment, have to find some time to get to this
No problem @jaap3, thank all the time you need. When this is ready for re-review, just update flags in the Trac ticket. Thank you!
@nessita I've addressed your comments. Hope I did it right.
@sarahboyce thanks for the review, I've addressed your comments. I've chosen to keep the new test module since your comment was inconclusive and I don't think these tests belong in the auth backends test suite.