summaryrefslogtreecommitdiff
path: root/src/ejabberd_captcha.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Do not use ~ts format in string that are put in xmpp payloadPaweł Chmielowski2020-01-221-2/+2
| | | | | We are expecting utf8 data here, and using that flag will convert those to unicode codepoints, which aren't handled properly later.
* Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-7/+7
|
* Handle CAPTCHA forms using captcha_form codecEvgeny Khramtsov2019-07-161-64/+53
|
* Process unexpected messages uniformlyEvgeny Khramtsov2019-07-121-4/+9
|
* Add/improve type specsEvgeny Khramtsov2019-07-101-3/+7
|
* Make logging messages more consistentEvgeny Khramtsov2019-06-241-1/+1
|
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-12/+13
| | | | | | | | | | | | | Now every such string MUST be encapsulated into ?T() macro. The macro itself is defined in include/translate.hrl. Example: -module(foo). -export([bar/1]). -include("translate.hrl"). bar(Lang) -> translate:translate(Lang, ?T("baz")).
* Introduce option 'captcha_url'Evgeny Khramtsov2019-06-141-14/+20
| | | | | | Option 'captcha_host' is now deprecated in favor of 'captcha_url'. However, it's not replaced automatically at startup, i.e. both options are supported with 'captcha_url' being the preferred one.
* Use new configuration validatorEvgeny Khramtsov2019-06-141-45/+55
|
* Improve captcha blocking alert wordingMickaël Rémond2019-05-251-2/+2
|
* Replace code using p1_time_compat wrapper with native functionsPaweł Chmielowski2019-02-271-1/+1
| | | | | | | Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Add no-store hint to CAPTCHA challenge stanzas (#2730)Badlop2018-12-261-1/+2
|
* Add specific Var names to CAPTCHA fallback form fields (#2672)Badlop2018-11-271-2/+2
|
* Remove forgotten debug lineEvgeny Khramtsov2018-09-191-1/+0
|
* Fix some dialyzer warningsEvgeny Khramtsov2018-09-091-4/+1
|
* Move cancel_timer/1 function into 'misc' moduleHolger Weiss2018-07-171-6/+2
|
* Move move randoms module to p1_utils repoEvgeniy Khramtsov2018-07-051-3/+3
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-4/+3
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Remove 'iqdisc' optionEvgeniy Khramtsov2018-02-111-2/+1
| | | | | | | | | | | | | | | | | Since we got rid of all bottle-neck processes and we have a connection pool for every database, the option is no longer needed and in fact is detrimental: in practice what you get is just a bunch of overloaded processes in the IQ handlers pool no matter how much you increase the `iqdisc` value. Given that there are close to zero operators understanding the meaning of the option and, hence, not using it all, it's not simply deprecated but completely removed. The commit also deprecates the following functions: - gen_iq_handler:add_iq_handler/6 - gen_iq_handler:handle/5 - gen_iq_handler:iqdisc/1
* Introduce option 'captcha' for mod_block_strangersEvgeniy Khramtsov2018-01-261-39/+113
| | | | | | | | | | When the option is set to `true`, the module will generate CAPTCHA challenges for incoming subscription requests. The option also implies that option `drop` is set to `true`. Note that the module won't generate CAPTCHA challenges for messages: they will still be rejected if `drop` is set to `true`. Fixes #2246
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Fix regression introduced by b82b93f8f0c229eEvgeniy Khramtsov2017-08-111-16/+11
| | | | Fixes #1928
* Add type specs for Module:opt_type/1Evgeniy Khramtsov2017-05-081-0/+4
|
* Don't validate an option in ejabberd_config:get_option() functionsEvgeniy Khramtsov2017-04-291-15/+4
| | | | | | | | | | | | | The commit introduces the following changes: * Now there is no need to pass validating function in ejabberd_config:get_option() functions, because the configuration keeps already validated values. * New function ejabberd_config:get_option/1 is introduced * Function ejabberd_config:get_option/3 is deprecated. If the function is still called, the second argument (validating function) is simply ignored. * The second argument for ejabberd_config:get_option/2 is now a default value, not a validating function.
* Don't re-define validation functions in multiple placesEvgeniy Khramtsov2017-04-281-3/+3
|
* Get rid of p1_sha callsAlexey Shchepin2017-03-141-2/+2
|
* Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov2017-02-261-3/+3
|
* Fix some dialyzer warningsEvgeniy Khramtsov2017-02-161-1/+1
|
* Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|
* Improve translation of some messagesEvgeniy Khramtsov2016-11-261-5/+2
|
* Get rid of excessive (io)list_to_binary/1 callsEvgeniy Khramtsov2016-11-241-1/+1
|
* Add xdata generator and make some code using itEvgeniy Khramtsov2016-10-071-0/+1
|
* Deprecate jlib:integer_to_binary/1 and jlib:binary_to_integer/1Evgeniy Khramtsov2016-09-241-1/+1
|
* Rewrite captcha to use XML generatorEvgeniy Khramtsov2016-07-281-192/+69
|
* Switch to Fast XML moduleMickael Remond2016-02-031-1/+1
|
* Update copyright to 2016 (#901)Badlop2016-01-131-1/+1
|
* Remove now() - part 1Paweł Chmielowski2015-12-041-2/+1
|
* Move JID related functions to jid.erl (#847)Evgeniy Khramtsov2015-11-241-3/+3
|
* cosmetic cleanupChristophe Romain2015-10-071-38/+4
|
* Add config validation at startupEvgeniy Khramtsov2015-06-011-1/+14
|
* Document protocol support (EJABS-1620)Badlop2015-05-211-0/+2
|
* Update copyright dates to 2015 (EJAB-1733)Badlop2015-01-081-1/+1
|
* Fix ejabberd_captcha's listener parsingHolger Weiss2014-12-241-9/+9
| | | | | | If the "captcha_host" is specified without "http://" or "https://" prefix, ejabberd_captcha tries to figure out the protocol automatically. Fix the code that parses the listener configuration in order to do that.
* Merge pull request #146 from jamielinux/masterbadlop2014-04-111-4/+3
|\ | | | | Update FSF address
| * Update FSF addressJamie Nguyen2014-02-221-4/+3
| |