Mercurial > prosody-modules
comparison mod_register_web/mod_register_web.lua @ 3753:cf3247ec5e01
mod_register_web: Set a (configurable) HTTP app title
This is understood by mod_http_index for example.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 17 Nov 2019 16:34:56 +0100 |
parents | 19e43b7a969d |
children | 95262bd1bcb2 |
comparison
equal
deleted
inserted
replaced
3752:8992f84ca870 | 3753:cf3247ec5e01 |
---|---|
196 end); | 196 end); |
197 return true; -- Leave connection open until we respond above | 197 return true; -- Leave connection open until we respond above |
198 end | 198 end |
199 | 199 |
200 module:provides("http", { | 200 module:provides("http", { |
201 title = module:get_option_string("register_web_title", "Account Registration"); | |
201 route = { | 202 route = { |
202 GET = generate_page; | 203 GET = generate_page; |
203 ["GET /"] = generate_page; | 204 ["GET /"] = generate_page; |
204 POST = handle_form; | 205 POST = handle_form; |
205 ["POST /"] = handle_form; | 206 ["POST /"] = handle_form; |