Check if the user is authenticated
Eg if user.is_authentucated
On Fri, Aug 26, 2022, 3:11 PM Lipede Tope <lipedetope04@gmail.com> wrote:
On Fri, Aug 26, 2022, 2:40 PM Jackson Patrick <jackson9567@gmail.com> wrote:--I am trying to get user using request.user and when printing gets None and in console it shows"Annoymous user". and am using simple jwt
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG2dbb2N14X_5vcBqTjf%2Bji%2Bxq41x2i8dta2865fw_v5Ze5LpA%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABp6AaCv0gBRrrcffSOP_SpjPdQWMec3S__AX05rLDLoV5TmdA%40mail.gmail.com.
No comments:
Post a Comment