Changeset 708 for trunk/wifidog-auth/wifidog/change_password.php
- Timestamp:
- 09/02/05 03:16:02 (8 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog-auth/wifidog/change_password.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/change_password.php
r579 r708 26 26 define('BASEPATH','./'); 27 27 require_once BASEPATH.'include/common.php'; 28 require_once BASEPATH.'classes/MainUI.php'; 28 29 require_once BASEPATH.'include/common_interface.php'; 29 30 require_once BASEPATH.'classes/User.php'; 30 require_once BASEPATH.'classes/MainUI.php';31 31 32 32 isset($_REQUEST["username"]) && $smarty->assign("username", $_REQUEST["username"]); … … 34 34 if (isset($_REQUEST["submit"])) { 35 35 try { 36 // If the source is present and that it's in our AUTH_SOURCE_ARRAY, save it to a var for later use37 $ _REQUEST['auth_source'] && in_array($_REQUEST['auth_source'], array_keys($AUTH_SOURCE_ARRAY)) && $account_origin = $_REQUEST['auth_source'];36 // If the source is present and that it's in our, save it to a var for later use 37 $account_origin = Networt::getObject($_REQUEST['auth_source']); 38 38 39 39 if (!$account_origin || !$_REQUEST["username"] || !$_REQUEST["oldpassword"] || !$_REQUEST["newpassword"] || !$_REQUEST["newpassword_again"]) … … 73 73 $sources = array (); 74 74 // Preserve keys 75 foreach (array_keys($AUTH_SOURCE_ARRAY) as $auth_source_key) 76 if ($AUTH_SOURCE_ARRAY[$auth_source_key]['authenticator']->isRegistrationPermitted()) 77 $sources[$auth_source_key] = $AUTH_SOURCE_ARRAY[$auth_source_key]; 75 $network_array=Network::getAllNetworks(); 76 foreach ($network_array as $network) 77 if ($network->getAuthenticator()->isRegistrationPermitted()) 78 $sources[$network->getId()] = $network->getName(); 78 79 79 80 isset ($sources) && $smarty->assign('auth_sources', $sources);
