Esempio n. 1
0
    def post(self):
        email = self.get_argument('email', '')

        result = account_libs.send_email_libs(self, email)
        if result['status'] is False:
            return self.write(result['msg'])
        return self.write(result['msg'])
Esempio n. 2
0
 def post(self):
     email = self.get_argument('email', '')  #获取需要验证的邮箱号
     print u'验证码已发送到邮箱:%s,请在5分钟内完成验证' % email
     result = account_libs.send_email_libs(self, email)
     if result['status'] is True:
         return self.write(result['msg'])
     return self.write(result['msg'])
Esempio n. 3
0
 def post(self):
     email = self.get_argument('email', '')
     result = send_email_libs(self, email)  # 发送邮件
     if result['status'] is True:
         return self.write(result['msg'])
     return self.write(result['msg'])