改变发邮件的账号
This commit is contained in:
parent
49c0f91ff0
commit
0a29827b5f
|
@ -81,9 +81,9 @@ class sendMsg(APIView):
|
|||
|
||||
def post(self, request):
|
||||
code = random.randint(10000,99999)
|
||||
my_sender = 'zhulinwei@ctc.ac.cn'
|
||||
my_sender = 'gxpt@ctc.ac.cn'
|
||||
my_user = request.data['mail']
|
||||
my_pass = 'Zlw901105'
|
||||
my_pass = 'Pintail123'
|
||||
if not User.objects.filter(username=my_user).exists():
|
||||
return Response('该账户不存在', status=status.HTTP_400_BAD_REQUEST)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue