mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Missin double equals in captiveportal.inc
Looking at where this is nested inside various if statements, I do not think this error did too much harm - only to the $mac['descr'] - in this particular code flow $username is not used for important stuff after this point.
This commit is contained in:
parent
f087d45398
commit
cc229ee94a
@ -2068,7 +2068,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
|
||||
$mac['logintype'] = "voucher";
|
||||
}
|
||||
}
|
||||
if ($username = "unauthenticated") {
|
||||
if ($username == "unauthenticated") {
|
||||
$mac['descr'] = "Auto-added";
|
||||
} else {
|
||||
$mac['descr'] = "Auto-added for user {$username}";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user