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:
Thibaut VARÈNE
2023-05-10 18:46:27 +02:00
committed by John Crispin
parent 8029c318d0
commit ecc8829a01

View File

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