diff mod_password_policy/mod_password_policy.lua @ 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 56eba4bca28f
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;