def GET(self): time_md5=get_time_md5() r = init_redis() checkcode = "data:image/gif;base64,"+r.hget('checkcode',time_md5) dic = {'time_md5': time_md5, 'checkcode':checkcode} json_object = json.dumps(dic) return json_object
def GET(self): time_md5 = get_time_md5() r = init_redis() checkcode = "data:image/gif;base64," + r.hget('checkcode', time_md5) dic = {'time_md5': time_md5, 'checkcode': checkcode} json_object = json.dumps(dic) return json_object
def GET(self): time_md5 = get_time_md5() session['time_md5'] = time_md5 r = init_redis() checkcode = "data:image/gif;base64," + r.hget('checkcode', time_md5) return render.zheng(alert=zheng_alert, checkcode=checkcode)
def GET(self): time_md5= get_time_md5() session['time_md5']=time_md5 r = init_redis() checkcode = "data:image/gif;base64,"+r.hget('checkcode',time_md5) return render.zheng(alert=zheng_alert, checkcode=checkcode)
def GET(self): global allclients try: time_md5 = get_time_md5() except URLError: return "can not touch zhengfang!" session['time_md5'] = time_md5 form = get_index_form(time_md5) r = init_redis() checkcode = "data:image/gif;base64," + r.hget('checkcode', time_md5) return render.login(alert=zheng_alert, form=form, checkcode=checkcode)
def GET(self): global allclients try: time_md5= get_time_md5() except URLError: return "can not touch zhengfang!" session['time_md5'] = time_md5 form = get_index_form(time_md5) r = init_redis() checkcode = "data:image/gif;base64,"+r.hget('checkcode',time_md5) return render.login(alert=zheng_alert, form=form, checkcode=checkcode)