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:
Phil Davis 2015-03-13 07:30:52 +05:45
parent f087d45398
commit cc229ee94a

View File

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