From cb3ca4eac2a3bf2f589584278c1776db2da3a3f6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 21 Apr 2018 17:02:30 +0200 Subject: log secrets --- mod_auth_custom/mod_auth_custom.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod_auth_custom/mod_auth_custom.lua') diff --git a/mod_auth_custom/mod_auth_custom.lua b/mod_auth_custom/mod_auth_custom.lua index 9ed34c3..2ac5531 100644 --- a/mod_auth_custom/mod_auth_custom.lua +++ b/mod_auth_custom/mod_auth_custom.lua @@ -34,7 +34,9 @@ function alias_pw(username) local f = assert(io.open(alias_secret_file, "r")); local secret = f:read("*all"); f:close(); - return sha2.sha512hex(username .. "@" .. module.host .. secret); + local auth = sha2.sha512hex(username .. "@" .. module.host .. secret); + module:log("debug", "Expecting ā€˜%sā€™ as auth-secret for %s", auth, username .. "@" .. module.host); + return auth; end function user_exists(username) -- cgit v1.2.3