#36561: `aupdate_session_auth_hash` is using `request.user`
------------------------+----------------------------------------
Reporter: Xdynix | Type: Bug
Status: new | Component: contrib.auth
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+----------------------------------------
In **aupdate_session_auth_hash** the source code is
{{{#!python
if hasattr(user, "get_session_auth_hash") and request.user == user:
}}}
which will raise **SynchronousOnlyOperation** error when used in an async
view. It should be `await request.auser()` instead.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36561>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.