-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# User Senya <[email protected]>
# Date 1517429727 -7200
#      Wed Jan 31 22:15:27 2018 +0200
# Node ID 759b6d0349bee764b847a06809664c1b439a3740
# Parent  d57ef3c4e3ca2a97d05a0af961453b0185ba8044
mod_auth_custom_http: Fix json.encode impoper reference

diff -r d57ef3c4e3ca -r 759b6d0349be mod_auth_custom_http/mod_auth_custom_http.lua
--- a/mod_auth_custom_http/mod_auth_custom_http.lua	Tue Jan 30 09:26:31 2018 +0200
+++ b/mod_auth_custom_http/mod_auth_custom_http.lua	Wed Jan 31 22:15:27 2018 +0200
@@ -6,7 +6,7 @@
 --
 
 local new_sasl = require "util.sasl".new;
-local json_encode = require "util.json";
+local json = require "util.json";
 local http = require "socket.http";
 
 local options = module:get_option("auth_custom_http");
@@ -42,7 +42,7 @@
 function provider.get_sasl_handler()
 	local getpass_authentication_profile = {
 		plain_test = function(sasl, username, password, realm)
-			local postdata = json_encode({ username = username, password = password });
+			local postdata = json.encode({ username = username, password = password });
 			local result = http.request(post_url, postdata);
 			return result == "true", true;
 		end,
@@ -52,4 +52,3 @@
 
 
 module:provides("auth", provider);
-

Reply via email to