示例#1
0
文件: user.py 项目: Geniushjs/guolanr
def mobile_verification(request, userprofile, redirect_uri = '/user/init/submit'):
	sms.send_verify(userprofile)
	request.session["mobile"] = userprofile.mobile
	request.session["phone"] = userprofile.phone
	request.session["address"] = userprofile.address
	return HttpResponseRedirect("/user/mobile/verify?id=%s&next=%s"%(userprofile.id, redirect_uri))