public static function lostPasswordConfirmKey() { $result = array('rpcStatus' => 0); if (lC_Login_Admin::lostPasswordConfirmKey($_GET['key'], $_GET['email'])) { $result['rpcStatus'] = RPC_STATUS_SUCCESS; } echo json_encode($result); }
public function __construct() { global $lC_Database, $lC_Language, $lC_MessageStack, $rInfo; parent::__construct(); if (isset($_POST['key']) && $_POST['key'] != NULL && isset($_POST['email']) && $_POST['email'] != NULL) { if (lC_Login_Admin::lostPasswordConfirmKey($_POST['key'], $_POST['email'])) { $rInfo = new lC_ObjectInfo($_POST); } else { // if key is invalid redirect back to login lc_redirect_admin(lc_href_link_admin(FILENAME_DEFAULT, $this->_module)); } } }