jira-34 points earned

This commit is contained in:
jain
2023-07-18 19:18:38 +05:30
parent 06d841f444
commit 9b84d176af
5 changed files with 84 additions and 6 deletions

View File

@ -62,7 +62,7 @@ class SignupViewset(viewsets.ModelViewSet):
user_type=str(request.data['user_type']), expired_at=expiry)
"""Send email to the register user"""
send_otp_email(request.data['email'], otp)
return custom_response(SUCCESS_CODE['3001'], {"email_otp": otp},
return custom_response(SUCCESS_CODE['3001'],
response_status=status.HTTP_200_OK)
return custom_error_response(serializer.errors, response_status=status.HTTP_400_BAD_REQUEST)
else: