Show
Ignore:
Timestamp:
03/03/10 19:27:35 (2 years ago)
Author:
gbastien
Message:

* Modifs on the token architecture: some corrections to connection and token deletions and garbage collection because token are now reusable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newtoken/wifidog/auth/index.php

    r1446 r1455  
    118118            } 
    119119            else if ($info['token_status'] == TOKEN_INUSE && 
    120                 $info['gw_id'] && isset($_REQUEST['gw_id']) && $info['gw_id'] == $_REQUEST['gw_id'] && 
    121                 $info['user_mac'] && isset($_REQUEST['mac']) && $info['user_mac'] == $_REQUEST['mac'] && 
    122                 $info['user_ip'] && isset($_REQUEST['ip']) && $info['user_ip'] == $_REQUEST['ip']) 
     120                isset($info['gw_id']) && isset($_REQUEST['gw_id']) && $info['gw_id'] == $_REQUEST['gw_id'] && 
     121                isset($info['user_mac']) && isset($_REQUEST['mac']) && $info['user_mac'] == $_REQUEST['mac'] && 
     122                isset($info['user_ip']) && isset($_REQUEST['ip']) && $info['user_ip'] == $_REQUEST['ip']) 
    123123            { 
    124124                // This solves the bug where the user clicks twice before getting the portal page