aboutsummaryrefslogtreecommitdiff
path: root/src/mod_register_web.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2021-08-18 13:40:09 +0200
committerBadlop <badlop@process-one.net>2021-08-23 14:04:37 +0200
commit69d362595e5aab86383f0596a0613af233358d31 (patch)
treefe9121d5dabd63c9d56c01067b84243d932d13b1 /src/mod_register_web.erl
parentAdd example config to mod_http_api documentation (diff)
Remove obsolete mod_register_web ideas and improve documentation
Diffstat (limited to 'src/mod_register_web.erl')
-rw-r--r--src/mod_register_web.erl56
1 files changed, 22 insertions, 34 deletions
diff --git a/src/mod_register_web.erl b/src/mod_register_web.erl
index 9c2179302..28bac0558 100644
--- a/src/mod_register_web.erl
+++ b/src/mod_register_web.erl
@@ -23,32 +23,6 @@
%%%
%%%----------------------------------------------------------------------
-%%% IDEAS:
-%%%
-%%% * Implement those options, already present in mod_register:
-%%% + access
-%%% + captcha_protected
-%%% + password_strength
-%%% + welcome_message
-%%% + registration_timeout
-%%%
-%%% * Improve this module to allow each virtual host to have different
-%%% options. See http://support.process-one.net/browse/EJAB-561
-%%%
-%%% * Check that all the text is translatable.
-%%%
-%%% * Add option to use a custom CSS file, or custom CSS lines.
-%%%
-%%% * Don't hardcode the "register" path in URL.
-%%%
-%%% * Allow private email during register, and store in custom table.
-%%% * Optionally require private email to register.
-%%% * Optionally require email confirmation to register.
-%%% * Allow to set a private email address anytime.
-%%% * Allow to recover password using private email to confirm (mod_passrecover)
-%%% * Optionally require invitation
-%%% * Optionally register request is forwarded to admin, no account created.
-
-module(mod_register_web).
-author('badlop@process-one.net').
@@ -625,13 +599,27 @@ mod_doc() ->
?T("- Register a new account on the server."), "",
?T("- Change the password from an existing account on the server."), "",
?T("- Unregister an existing account on the server."), "",
- ?T("This module supports CAPTCHA image to register a new account. "
- "To enable this feature, configure the options 'captcha\_cmd' "
- "and 'captcha\_url', which are documented in the section with "
- "top-level options."), "",
- ?T("As an example usage, the users of the host 'example.org' can "
- "visit the page: 'https://example.org:5281/register/' It is "
+ ?T("This module supports http://../basic/#captcha[CAPTCHA] "
+ "to register a new account. "
+ "To enable this feature, configure the "
+ "top-level _`captcha_cmd`_ and "
+ "top-level _`captcha_url`_ options."), "",
+ ?T("As an example usage, the users of the host 'localhost' can "
+ "visit the page: 'https://localhost:5280/register/' It is "
"important to include the last / character in the URL, "
"otherwise the subpages URL will be incorrect."), "",
- ?T("The module depends on 'mod_register' where all the configuration "
- "is performed.")]}.
+ ?T("This module is enabled in 'listen' -> 'ejabberd_http' -> "
+ "http://../listen-options/#request-handlers[request_handlers], "
+ "no need to enable in 'modules'."),
+ ?T("The module depends on _`mod_register`_ where all the "
+ "configuration is performed.")],
+ example =>
+ ["listen:",
+ " -",
+ " port: 5280",
+ " module: ejabberd_http",
+ " request_handlers:",
+ " /register: mod_register_web",
+ "",
+ "modules:",
+ " mod_register: {}"]}.