Fixes: 1) Correct query order to call nocache before get in vibes_auth/viewsets.py;
Extra: None;
This commit is contained in:
parent
0d9df63ca7
commit
34616d6cd5
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class UserViewSet(
|
||||||
detail = ""
|
detail = ""
|
||||||
try:
|
try:
|
||||||
uuid = urlsafe_base64_decode(request.data.get("uidb64")).decode()
|
uuid = urlsafe_base64_decode(request.data.get("uidb64")).decode()
|
||||||
user = User.objects.get(pk=uuid).nocache()
|
user = User.objects.nocache().get(pk=uuid)
|
||||||
if not user.check_token(request.data.get("token")):
|
if not user.check_token(request.data.get("token")):
|
||||||
return Response(
|
return Response(
|
||||||
{"error": _("activation link is invalid!")},
|
{"error": _("activation link is invalid!")},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue