#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070198c1975aaf-5b1dd3c5-53d5-4631-af18-5ab7eb7713eb-000000%40eu-central-1.amazonses.com.

Reply via email to