Skip to content

Commit

Permalink
fix: 이메일 인증 코드 전송 수정 중
Browse files Browse the repository at this point in the history
  • Loading branch information
Euizzang8001 committed Jul 31, 2024
1 parent ff7943a commit c8219d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KUA/student/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def post(self, request):
email_object, created = models.CertificationCode.objects.get_or_create(email=email)
email_object.certification_code = random_code
email_object.certification_check = False
print(email_object)
email_object.save()

except Exception as e:
return Response({'error': 'Failed to save certification code.'}, status=500)

Expand Down

0 comments on commit c8219d6

Please sign in to comment.