Fixes: 1) Correct token decoding in user activation check.
Extra: None.
This commit is contained in:
parent
cf721a50fa
commit
7f761f751a
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class UserViewSet(
|
|||
try:
|
||||
uuid = urlsafe_base64_decode(request.data.get("uidb64")).decode()
|
||||
user = User.objects.nocache().get(pk=uuid)
|
||||
if not user.check_token(request.data.get("token")):
|
||||
if not user.check_token(urlsafe_base64_decode(request.data.get("token"))):
|
||||
return Response(
|
||||
{"error": _("activation link is invalid!")},
|
||||
status=status.HTTP_400_BAD_REQUEST,
|
||||
|
|
|
|||
Loading…
Reference in a new issue