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))