Skip to content

Commit 642f52d

Browse files
committed
fixed the email confirmation bug
1 parent 1d532cb commit 642f52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/user_app/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class ConfirmEmailView(APIView):
6666

6767
def get(self, request, uidb64, token):
6868
try:
69-
uid = smart_str(urlsafe_base64_decode(uidb64))
69+
uid = urlsafe_base64_decode(uidb64).decode()
7070
user = get_user_model().objects.get(pk=uid)
7171
except (TypeError, ValueError, OverflowError, get_user_model().DoesNotExist):
7272
return Response({"error": "Invalid user ID"}, status=400)

0 commit comments

Comments
 (0)