Diff

mod_register_web/README.md @ 6211:750d64c47ec6 draft

Merge
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Tue, 18 Mar 2025 00:31:36 +0700
parent 6003:fe081789f7b5
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mod_register_web/README.md	Tue Mar 18 00:31:36 2025 +0700
@@ -0,0 +1,67 @@
+---
+labels:
+- 'Stage-Alpha'
+summary: A web interface to register user accounts
+rockspec:
+  build:
+    copy_directories:
+    - templates
+...
+
+Introduction
+------------
+
+There are various reasons to prefer web registration instead of
+"in-band" account registration over XMPP. For example the lack of
+CAPTCHA support in clients and servers.
+
+Details
+-------
+
+mod\_register\_web has Prosody serve a web page where users can sign up
+for an account. It implements reCAPTCHA to prevent automated sign-ups
+(from bots, etc.).
+
+Configuration
+-------------
+
+The module is served on Prosody's default HTTP ports at the path
+`/register_web`. More details on configuring HTTP modules in Prosody can
+be found in our [HTTP documentation](http://prosody.im/doc/http).
+
+To configure the CAPTCHA you need to supply a 'captcha\_options' option:
+
+        captcha_options = {
+          recaptcha_private_key = "12345";
+          recaptcha_public_key = "78901";
+        }
+
+The keys for reCAPTCHA are available in your reCAPTCHA account, visit
+[reCAPTCHA](https://developers.google.com/recaptcha/) for more info.
+
+If no reCaptcha options are set, a simple built in captcha is used.
+
+Customization
+-------------
+
+Copy the files in mod_register_web/templates/ to a new directory. Edit them,
+and set `register_web_template = "/path/to/your/custom-templates"` in your
+config file.
+
+Compatibility
+-------------
+
+  ----- --------------
+  0.10  Works
+  0.9   Works
+  0.8   Doesn't work
+  ----- --------------
+
+Todo
+----
+
+Different CAPTCHA implementation support
+
+Collection of additional data, such as email address
+
+The module kept simple!