修改发送邮箱密码
This commit is contained in:
parent
0a29827b5f
commit
911e548e01
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue