Software / code / prosody
Comparison
plugins/mod_register_ibr.lua @ 12330:38b5b05407be
various: Require encryption by default for real
These options have been specified (and enabled) in the default config file for
a long time. However if unspecified in the config, they were not enabled. Now
they are.
This may result in a change of behaviour for people using very old config
files that lack the require_encryption options. But that's what we want.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 25 Dec 2021 16:23:40 +0100 |
| parent | 10946:84441c19750e |
| child | 12977:74b9e05af71e |
comparison
equal
deleted
inserted
replaced
| 12329:c980210ca095 | 12330:38b5b05407be |
|---|---|
| 16 local nodeprep = require "util.encodings".stringprep.nodeprep; | 16 local nodeprep = require "util.encodings".stringprep.nodeprep; |
| 17 local util_error = require "util.error"; | 17 local util_error = require "util.error"; |
| 18 | 18 |
| 19 local additional_fields = module:get_option("additional_registration_fields", {}); | 19 local additional_fields = module:get_option("additional_registration_fields", {}); |
| 20 local require_encryption = module:get_option_boolean("c2s_require_encryption", | 20 local require_encryption = module:get_option_boolean("c2s_require_encryption", |
| 21 module:get_option_boolean("require_encryption", false)); | 21 module:get_option_boolean("require_encryption", true)); |
| 22 | 22 |
| 23 pcall(function () | 23 pcall(function () |
| 24 module:depends("register_limits"); | 24 module:depends("register_limits"); |
| 25 end); | 25 end); |
| 26 | 26 |