Changeset

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
parents 5775:c27eaa7117d6
children 5777:1d0a0d3f9593
files mod_client_management/mod_client_management.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);