+2008-04-26 Badlop <badlop@process-one.net>
+
+ * doc/guide.tex: Document option registration_timeout (EJAB-614)
+
2008-04-25 Badlop <badlop@process-one.net>
* src/ejabberd_c2s.erl: Added forbidden_session_hook
activated when registration fails
* src/mod_register.erl: Restrict registration frequency per IP or
- user
+ user (EJAB-614)
* src/ejabberd_c2s.erl: Pass IP to the c2s_unauthenticated_iq hook
* src/ejabberd_config.erl: Added registration_timeout option
\iqdiscitem{In-Band Registration (\ns{jabber:iq:register})}
\end{description}
+This module reads also another option defined globably for the server:
+\term{\{registration\_timeout, Timeout\}}. \ind{options!registratimeout}
+This option limits the frequency of registration from a given IP or username.
+So, a user can't register a new account from the same IP address or JID during
+this number of seconds after previous registration.
+Timeout is expressed in seconds, and must be an integer.
+Default value: 600 seconds.
+
Examples:
\begin{itemize}
\item Next example prohibits the registration of too short account names:
...
]}.
\end{verbatim}
-\item Define the welcome message and three registration watchers:
+\item Define the welcome message and three registration watchers.
+Also define a registration timeout of one hour:
\begin{verbatim}
+ {registration_timeout, 3600}.
{modules,
[
...