accounting dont use Mac as identity, just username

This commit is contained in:
Ibnu Maksum 2024-08-09 14:48:19 +07:00
parent 85ede07d77
commit 8adf41bf75
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -166,7 +166,6 @@ try {
header("HTTP/1.1 200 ok"); header("HTTP/1.1 200 ok");
$d = ORM::for_table('rad_acct') $d = ORM::for_table('rad_acct')
->where('username', $username) ->where('username', $username)
->where('macaddr', _post('macAddr'))
->where('acctstatustype', _post('acctStatusType')) ->where('acctstatustype', _post('acctStatusType'))
->findOne(); ->findOne();
if (!$d) { if (!$d) {
@ -178,7 +177,6 @@ try {
// log in the Start only // log in the Start only
$start = ORM::for_table('rad_acct') $start = ORM::for_table('rad_acct')
->where('username', $username) ->where('username', $username)
->where('macaddr', _post('macAddr'))
->where('acctstatustype', 'Start') ->where('acctstatustype', 'Start')
->findOne(); ->findOne();
if (!$start) { if (!$start) {