Skip to content

Commit

Permalink
[GREEN] Implements fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesSetiawan committed May 28, 2024
1 parent e718bd5 commit 00bb35a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion authentication/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ def post(self, request):
refresh = RefreshToken.for_user(user)
return Response({'refresh': str(refresh),
'access': str(refresh.access_token)})
else:
elif user is None:
return Response({'msg': 'Wrong username/password!'}, status=400)
else:
return Response({'msg': 'You have not verified yet. Please register again and verify your account!'}, status=400)

class SendVerificationEmailView(APIView):

Expand Down

0 comments on commit 00bb35a

Please sign in to comment.