改变发邮件的账号

This commit is contained in:
shilixia 2020-10-16 10:26:41 +08:00
parent 49c0f91ff0
commit 0a29827b5f
1 changed files with 2 additions and 2 deletions

View File

@ -81,9 +81,9 @@ class sendMsg(APIView):
def post(self, request): def post(self, request):
code = random.randint(10000,99999) code = random.randint(10000,99999)
my_sender = 'zhulinwei@ctc.ac.cn' my_sender = 'gxpt@ctc.ac.cn'
my_user = request.data['mail'] my_user = request.data['mail']
my_pass = 'Zlw901105' my_pass = 'Pintail123'
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: