Diff

mod_client_management/mod_client_management.lua @ 5776:3730992d0c7c

mod_client_management: Include session in new-client event Needed by mod_audit_auth
author Kim Alvefur <zash@zash.se>
date Sat, 02 Dec 2023 11:06:47 +0100
parent 5717:8afa0fb8a73e
child 5779:e199f33f7a2e
line wrap: on
line diff
--- a/mod_client_management/mod_client_management.lua	Fri Dec 01 22:40:41 2023 +0100
+++ b/mod_client_management/mod_client_management.lua	Sat Dec 02 11:06:47 2023 +0100
@@ -79,7 +79,7 @@
 		client_store:set_key(username, client_id, client_state);
 
 		if is_new_client then
-			module:fire_event("client_management/new-client", { client = client_state });
+			module:fire_event("client_management/new-client", { client = client_state; session = session });
 		end
 	end
 end);