mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
uspot: add userurl to uam redirect parameters
Fixes: WIFI-11539 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -4,10 +4,10 @@ PKG_NAME:=ucentral-schema
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-schema.git
|
||||
PKG_MIRROR_HASH:=31d5b340fb6d9a5c3dcb2fe3059007b45e949a37053f58defe9784915b8720b5
|
||||
PKG_MIRROR_HASH:=0d3db461560e89f0af31f0dabc3e047a3e0a87c032fd0cb0d031f560890f6358
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2022-05-29
|
||||
PKG_SOURCE_VERSION:=b4b8e19cb3d19270418a96b5aee4c879c3a20776
|
||||
PKG_SOURCE_VERSION:=328240bec69a91ca509c55b139f27cf37a0bd290
|
||||
|
||||
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
||||
@@ -166,6 +166,8 @@ return {
|
||||
'&called=' + this.config.uam.nasmac +
|
||||
'&nasid=' + this.config.uam.nasid +
|
||||
'&ssid=' + ctx.ssid;
|
||||
if (ctx.query_string?.redir)
|
||||
uam_url += '&userurl=' + ctx.query_string.redir;
|
||||
if (this.config.uam.uam_secret)
|
||||
uam_url += '&md=' + this.uam.md5(ctx.redir_location, this.config.uam.uam_secret);
|
||||
return uam_url;
|
||||
|
||||
Reference in New Issue
Block a user