Google云者 = Google Cloud Platform 学习者
现在注册
已注册用户请 登入
Google云者  ›  V2EX

删除注册时的 reCAPTCHA 验证

By life at 4 years, 4 months ago, 1231 hits
删除注册时的 reCAPTCHA 验证:
# By keakon

修改main.py文件:

1 SignupHandler的get里把chtml的值改成''

class SignupHandler(webapp.RequestHandler):
def get(self):
site = GetSite()
member = False
+ chtml = ''
browser = detect(self.request)

2 post里把这段代码
# Verification: reCAPTCHA

template_values['recaptcha_error_message'] = '请重新输入 reCAPTCHA 验证码'
删掉
加一行template_values['recaptcha_error'] = 0,注意缩进

# Verification: reCAPTCHA
+ template_values['recaptcha_error'] = 0
template_values['errors'] = errors
目前尚无回复

CC BY-NC 4.0 - Google云者:Google Cloud Platform Leaner