uspot: add userurl to uam redirect parameters

Fixes: WIFI-11539
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2022-11-14 10:44:14 +01:00
parent a3d348b664
commit d511a338df
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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;