comparison mod_register_web/mod_register_web.lua @ 1225:a3766d3baacb

mod_register_web: Import usermanager and util.http into locals
author Kim Alvefur <zash@zash.se>
date Sat, 30 Nov 2013 18:22:58 +0100
parents 6617f5f79d68
children 0667624637da
comparison
equal deleted inserted replaced
1224:0b72b8fe4591 1225:a3766d3baacb
1 local captcha_options = module:get_option("captcha_options", {}); 1 local captcha_options = module:get_option("captcha_options", {});
2 local nodeprep = require "util.encodings".stringprep.nodeprep; 2 local nodeprep = require "util.encodings".stringprep.nodeprep;
3 local usermanager = require "core.usermanager";
4 local http = require "util.http";
3 5
4 function generate_captcha(display_options) 6 function generate_captcha(display_options)
5 return (([[ 7 return (([[
6 <script type="text/javascript" 8 <script type="text/javascript"
7 src="https://www.google.com/recaptcha/api/challenge?k=$$recaptcha_public_key$$"> 9 src="https://www.google.com/recaptcha/api/challenge?k=$$recaptcha_public_key$$">