Features: None;
Fixes: 1) Ensure user retrieval bypasses caching using `.nocache()` method; Extra: None;
This commit is contained in:
parent
861010ae86
commit
0d9df63ca7
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class UserViewSet(
|
|||
detail = ""
|
||||
try:
|
||||
uuid = urlsafe_base64_decode(request.data.get("uidb64")).decode()
|
||||
user = User.objects.get(pk=uuid)
|
||||
user = User.objects.get(pk=uuid).nocache()
|
||||
if not user.check_token(request.data.get("token")):
|
||||
return Response(
|
||||
{"error": _("activation link is invalid!")},
|
||||
|
|
|
|||
Loading…
Reference in a new issue