Changeset 712

Show
Ignore:
Timestamp:
09/03/05 14:57:21 (8 years ago)
Author:
aprilp
Message:

Fixed signup and auth, typos

Location:
trunk/wifidog-auth
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/ChangeLog

    r711 r712  
    33        * Replaced HOTSPOT_NETWORK_NAME with hotspot_network_name in all templates 
    44        * s/Networt/Network/ 
     5        * Fixed signing up and validation, typos 
    56 
    672005-09-01 Benoit Grégoire  <bock@step.polymtl.ca> 
  • trunk/wifidog-auth/wifidog/auth/index.php

    r708 r712  
    2828define('BASEPATH', '../'); 
    2929require_once BASEPATH.'include/common.php'; 
     30require_once BASEPATH.'classes/Network.php'; 
    3031 
    3132$auth_response = ACCOUNT_STATUS_DENIED; 
  • trunk/wifidog-auth/wifidog/signup.php

    r711 r712  
    8181        $smarty->assign('username', $username); 
    8282        $smarty->assign('email', $email); 
    83                 $account_origin = Network::getObject($_REQUEST['auth_source']); 
     83    $account_origin = Network::getObject($_REQUEST['auth_source'])->getId(); 
    8484        try 
    8585        { 
    86                 if (empty ($account_origin)) 
     86                if (!isset($account_origin)) 
    8787                        throw new Exception(_("Sorry, this network does not exist !")); 
    8888