equal
deleted
inserted
replaced
5 -- COPYING file in the source package for more information. |
5 -- COPYING file in the source package for more information. |
6 -- |
6 -- |
7 |
7 |
8 local new_sasl = require "util.sasl".new; |
8 local new_sasl = require "util.sasl".new; |
9 local json = require "util.json"; |
9 local json = require "util.json"; |
|
10 prosody.unlock_globals(); |
10 local http = require "socket.http"; |
11 local http = require "socket.http"; |
|
12 prosody.lock_globals(); |
11 |
13 |
12 local options = module:get_option("auth_custom_http"); |
14 local options = module:get_option("auth_custom_http"); |
13 local post_url = options and options.post_url; |
15 local post_url = options and options.post_url; |
14 assert(post_url, "No HTTP POST URL provided"); |
16 assert(post_url, "No HTTP POST URL provided"); |
15 |
17 |