修改发送邮箱密码

This commit is contained in:
shilixia 2020-10-16 10:41:50 +08:00
parent 0a29827b5f
commit 911e548e01
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class sendMsg(APIView):
code = random.randint(10000,99999) code = random.randint(10000,99999)
my_sender = 'gxpt@ctc.ac.cn' my_sender = 'gxpt@ctc.ac.cn'
my_user = request.data['mail'] my_user = request.data['mail']
my_pass = 'Pintail123' my_pass = 'Pintai123'
if not User.objects.filter(username=my_user).exists(): if not User.objects.filter(username=my_user).exists():
return Response('该账户不存在', status=status.HTTP_400_BAD_REQUEST) return Response('该账户不存在', status=status.HTTP_400_BAD_REQUEST)
try: try: