Rename option captcha to captcha_protected for consistency

This commit is contained in:
Evgeniy Khramtsov 2010-10-24 15:45:42 +10:00 committed by Badlop
parent f310292da4
commit 55bd17d6f5
2 changed files with 3 additions and 1 deletions

View File

@ -3792,6 +3792,8 @@ Options:
doesn't allow to register new accounts from s2s or existing c2s sessions. You can
change it by defining access rule in this option. Use with care: allowing registration
from s2s leads to uncontrolled massive accounts creation by rogue users.
\titem{\{captcha\_protected, false|true\}} \ind{options!captcha\_protected}
Protect registrations with CAPTCHA (see section \ref{captcha}). The default is \term{false}.
\titem{\{welcome\_message, Message\}} \ind{options!welcomem}Set a welcome message that
is sent to each newly registered account. The first string is the subject, and
the second string is the message body.

View File

@ -96,7 +96,7 @@ process_iq(From, To,
#iq{type = Type, lang = Lang, payload = SubEl, id = ID} = IQ_Rec,
Source) ->
IsCaptchaEnabled = case gen_mod:get_module_opt(
exmpp_jid:domain(To), ?MODULE, captcha, false) of
exmpp_jid:domain(To), ?MODULE, captcha_protected, false) of
true ->
true;
_ ->