mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
* doc/guide.tex: Document option registration_timeout (EJAB-614)
SVN Revision: 1302
This commit is contained in:
parent
c88a4650ba
commit
0b5720906c
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2008-04-25 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
* src/ejabberd_c2s.erl: Added forbidden_session_hook
|
* src/ejabberd_c2s.erl: Added forbidden_session_hook
|
||||||
@ -14,7 +18,7 @@
|
|||||||
activated when registration fails
|
activated when registration fails
|
||||||
|
|
||||||
* src/mod_register.erl: Restrict registration frequency per IP or
|
* 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_c2s.erl: Pass IP to the c2s_unauthenticated_iq hook
|
||||||
* src/ejabberd_config.erl: Added registration_timeout option
|
* src/ejabberd_config.erl: Added registration_timeout option
|
||||||
|
|
||||||
|
@ -3001,6 +3001,14 @@ Options:
|
|||||||
\iqdiscitem{In-Band Registration (\ns{jabber:iq:register})}
|
\iqdiscitem{In-Band Registration (\ns{jabber:iq:register})}
|
||||||
\end{description}
|
\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:
|
Examples:
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Next example prohibits the registration of too short account names:
|
\item Next example prohibits the registration of too short account names:
|
||||||
@ -3035,8 +3043,10 @@ Examples:
|
|||||||
...
|
...
|
||||||
]}.
|
]}.
|
||||||
\end{verbatim}
|
\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}
|
\begin{verbatim}
|
||||||
|
{registration_timeout, 3600}.
|
||||||
{modules,
|
{modules,
|
||||||
[
|
[
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user