changeset 3351:662f2722f745

mod_password_policy: Export function to get policy in use by the module
author Matthew Wild <mwild1@gmail.com>
date Tue, 09 Oct 2018 14:03:00 +0100
parents cb26d04b391c
children f7668aee968a
files mod_password_policy/mod_password_policy.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_password_policy/mod_password_policy.lua	Tue Oct 09 14:02:42 2018 +0100
+++ b/mod_password_policy/mod_password_policy.lua	Tue Oct 09 14:03:00 2018 +0100
@@ -23,6 +23,10 @@
 	return true;
 end
 
+function get_policy()
+	return options;
+end
+
 function handler(event)
 	local origin, stanza = event.origin, event.stanza;