Skip to content

Commit 7f97e63

Browse files
authored
Fix parsing token passed as url param in synapse.lua
1 parent 34723fb commit 7f97e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/synapse/scripts/synapse.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ local function get_auth_token(auth_header, path)
2020

2121
local _, _, token_param = string.find(path, "access_token=([^&]+)")
2222
if token_param ~= nil then
23-
return parse_username_from_token(auth_header)
23+
return parse_username_from_token(token_param)
2424
end
2525

2626
return auth_header

0 commit comments

Comments
 (0)