mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 19:07:47 +00:00
uspot: handler: correctly honor mac_auth setting
Suggested-by: John Crispin <john@phrozen.org> Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
committed by
John Crispin
parent
8029c318d0
commit
ecc8829a01
@@ -19,7 +19,7 @@ function request_start(ctx) {
|
||||
include('radius.uc', ctx);
|
||||
return;
|
||||
case 'uam':
|
||||
if (ctx.config.mac_auth) {
|
||||
if (+ctx.config.mac_auth) {
|
||||
let payload = portal.radius_init(ctx);
|
||||
payload.username = ctx.format_mac;
|
||||
payload.password = ctx.format_mac;
|
||||
|
||||
Reference in New Issue
Block a user