Răsfoiți Sursa

Add header to auth line for current user

causefx 7 ani în urmă
părinte
comite
b8de572fb7
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      api/functions/organizr-functions.php

+ 1 - 0
api/functions/organizr-functions.php

@@ -1547,6 +1547,7 @@ function auth()
 	}
 	if ($group !== null) {
 		if (qualifyRequest($group) && $unlocked) {
+			header("X-Organizr-User: $currentUser");
 			!$debug ? exit(http_response_code(200)) : die("$userInfo Authorized");
 		} else {
 			!$debug ? exit(http_response_code(401)) : die("$userInfo Not Authorized");