prosody.cfg.lua.dist: Enable mod_register by default, but with registration disabled...
authorMatthew Wild <mwild1@gmail.com>
Tue, 2 Jun 2009 18:56:12 +0000 (19:56 +0100)
committerMatthew Wild <mwild1@gmail.com>
Tue, 2 Jun 2009 18:56:12 +0000 (19:56 +0100)
prosody.cfg.lua.dist

index 182f88893233acd01e45b1fe10dcc6dfce88fd06..c0627091e5e0c1b14b5da904325a753909a28559 100644 (file)
@@ -54,15 +54,19 @@ Host "*"
                                "uptime"; -- Report how long server has been running\r
                                "time"; -- Let others know the time here on this server\r
                                "ping"; -- Replies to XMPP pings with pongs\r
+                               "register"; -- Allow users to register on this server using a client and change passwords\r
 \r
                        -- Other specific functionality\r
-                               --"register"; -- Allow users to register on this server using a client\r
                                --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.\r
                                --"console"; -- telnet to port 5582 (needs console_enabled = true)\r
                                --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"\r
                                --"httpserver"; -- Serve static files from a directory over HTTP\r
                          };\r
        \r
+       -- Disable account creation by default, for security\r
+       -- For more information see http://prosody.im/doc/creating_accounts\r
+       allow_registration = false;\r
+       \r
        -- These are the SSL/TLS-related settings. If you don't want\r
        -- to use SSL/TLS, you may comment or remove this\r
        ssl = { \r