Changeset

9453:b6cdadb1175d

mod_register_ibr: Include password in user-registering event, to allow e.g. password policy enforcement
author Matthew Wild <mwild1@gmail.com>
date Tue, 09 Oct 2018 15:01:34 +0100
parents 9452:9d892b2415bf
children 9454:6780049be177
files plugins/mod_register_ibr.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_register_ibr.lua	Mon Oct 01 20:21:26 2018 +0100
+++ b/plugins/mod_register_ibr.lua	Tue Oct 09 15:01:34 2018 +0100
@@ -158,7 +158,7 @@
 		return true;
 	end
 
-	local user = { username = username , host = host, additional = data, ip = session.ip, session = session, allowed = true }
+	local user = { username = username, password = password, host = host, additional = data, ip = session.ip, session = session, allowed = true }
 	module:fire_event("user-registering", user);
 	if not user.allowed then
 		log("debug", "Registration disallowed by module: %s", user.reason or "no reason given");