@@ -199,8 +199,8 @@ authenticate_client(request * r)
199
199
"Got DENIED from central server authenticating token %s from %s at %s - deleting from firewall and redirecting them to denied message" ,
200
200
client -> token , client -> ip , client -> mac );
201
201
fw_deny (client );
202
- safe_asprintf (& urlFragment , "%smessage=%s" ,
203
- auth_server -> authserv_msg_script_path_fragment , GATEWAY_MESSAGE_DENIED );
202
+ safe_asprintf (& urlFragment , "%smessage=%s&token=%s " ,
203
+ auth_server -> authserv_msg_script_path_fragment , GATEWAY_MESSAGE_DENIED , client -> token );
204
204
http_send_redirect_to_auth (r , urlFragment , "Redirect to denied message" );
205
205
free (urlFragment );
206
206
break ;
@@ -210,8 +210,8 @@ authenticate_client(request * r)
210
210
debug (LOG_INFO , "Got VALIDATION from central server authenticating token %s from %s at %s"
211
211
"- adding to firewall and redirecting them to activate message" , client -> token , client -> ip , client -> mac );
212
212
fw_allow (client , FW_MARK_PROBATION );
213
- safe_asprintf (& urlFragment , "%smessage=%s" ,
214
- auth_server -> authserv_msg_script_path_fragment , GATEWAY_MESSAGE_ACTIVATE_ACCOUNT );
213
+ safe_asprintf (& urlFragment , "%smessage=%s&token=%s " ,
214
+ auth_server -> authserv_msg_script_path_fragment , GATEWAY_MESSAGE_ACTIVATE_ACCOUNT , client -> token );
215
215
http_send_redirect_to_auth (r , urlFragment , "Redirect to activate message" );
216
216
free (urlFragment );
217
217
break ;
@@ -222,7 +222,8 @@ authenticate_client(request * r)
222
222
"adding to firewall and redirecting them to portal" , client -> token , client -> ip , client -> mac );
223
223
fw_allow (client , FW_MARK_KNOWN );
224
224
served_this_session ++ ;
225
- safe_asprintf (& urlFragment , "%sgw_id=%s" , auth_server -> authserv_portal_script_path_fragment , config -> gw_id );
225
+ safe_asprintf (& urlFragment , "%sgw_id=%s&token=%s" , auth_server -> authserv_portal_script_path_fragment ,
226
+ config -> gw_id , client -> token );
226
227
http_send_redirect_to_auth (r , urlFragment , "Redirect to portal" );
227
228
free (urlFragment );
228
229
break ;
@@ -231,8 +232,9 @@ authenticate_client(request * r)
231
232
/* Client had X minutes to validate account by email and didn't = too late */
232
233
debug (LOG_INFO , "Got VALIDATION_FAILED from central server authenticating token %s from %s at %s "
233
234
"- redirecting them to failed_validation message" , client -> token , client -> ip , client -> mac );
234
- safe_asprintf (& urlFragment , "%smessage=%s" ,
235
- auth_server -> authserv_msg_script_path_fragment , GATEWAY_MESSAGE_ACCOUNT_VALIDATION_FAILED );
235
+ safe_asprintf (& urlFragment , "%smessage=%s&token=%s" ,
236
+ auth_server -> authserv_msg_script_path_fragment , GATEWAY_MESSAGE_ACCOUNT_VALIDATION_FAILED ,
237
+ client -> token );
236
238
http_send_redirect_to_auth (r , urlFragment , "Redirect to failed validation message" );
237
239
free (urlFragment );
238
240
break ;
0 commit comments