Fixes: 1) Correct token decoding in user activation workflow to prevent potential errors;
Extra: None;
This commit is contained in:
parent
7f761f751a
commit
61287dfd16
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(urlsafe_base64_decode(request.data.get("token"))):
|
||||
if not user.check_token(urlsafe_base64_decode(request.data.get("token")).decode()):
|
||||
return Response(
|
||||
{"error": _("activation link is invalid!")},
|
||||
status=status.HTTP_400_BAD_REQUEST,
|
||||
|
|
|
|||
Loading…
Reference in a new issue