Пример #1
0
 def get(self):
     email_code = self.get_argument('code', '')
     email = self.get_argument('email', '')
     u = self.get_argument('user_id', '')
     result = account_libs.auth_email_libs(self, email_code, email, u)
     if result['status'] is True:
         return self.redirect('/account/user_edit')
     return self.write(result['msg'])
Пример #2
0
    def get(self):
        email_code = self.get_argument('code', '')
        email = self.get_argument('email', '')
        user_id = self.get_argument('user_id', '')
        print email_code, email, user_id

        result = auth_email_libs(self, email, email_code, user_id)  # 验证邮箱验证码方法
        if result['status'] is True:
            return self.redirect('/account/user_edit')
        return self.write(result['msg'])