Mercurial > prosody-hg
comparison plugins/mod_auth_insecure.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 24 Mar 2023 13:15:28 +0100 |
| parents | 32881d0c359f |
| children |
comparison
equal
deleted
inserted
replaced
| 12976:a187600ec7d6 | 12977:74b9e05af71e |
|---|---|
| 5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
| 6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
| 7 -- | 7 -- |
| 8 -- luacheck: ignore 212 | 8 -- luacheck: ignore 212 |
| 9 | 9 |
| 10 local datamanager = require "util.datamanager"; | 10 local datamanager = require "prosody.util.datamanager"; |
| 11 local new_sasl = require "util.sasl".new; | 11 local new_sasl = require "prosody.util.sasl".new; |
| 12 local saslprep = require "util.encodings".stringprep.saslprep; | 12 local saslprep = require "prosody.util.encodings".stringprep.saslprep; |
| 13 | 13 |
| 14 local host = module.host; | 14 local host = module.host; |
| 15 local provider = { name = "insecure" }; | 15 local provider = { name = "insecure" }; |
| 16 | 16 |
| 17 assert(module:get_option_string("insecure_open_authentication") == "Yes please, I know what I'm doing!"); | 17 assert(module:get_option_string("insecure_open_authentication") == "Yes please, I know what I'm doing!"); |
