migrated ubiquitous libraries to composer autoloader (#421)
[openemr.git] / interface / cmsportal / patient_form_ajax.php
blob138cfe8b6e8c3b08ce6ac4a2ad3564fde96569ba
1 <?php
2 /**
3 * Patient matching and selection for the WordPress Patient Portal.
5 * Copyright (C) 2014 Rod Roark <rod@sunsetsystems.com>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
18 * @package OpenEMR
19 * @author Rod Roark <rod@sunsetsystems.com>
22 $sanitize_all_escapes = true;
23 $fake_register_globals = false;
25 require_once("../globals.php");
26 require_once("portal.inc.php");
28 $result = cms_portal_call(array(
29 'action' => 'adduser',
30 'newlogin' => $_REQUEST['login'],
31 'newpass' => $_REQUEST['pass'],
32 'newemail' => $_REQUEST['email'],
33 ));
35 if ($result['errmsg']) {
36 echo xl('Failed to add patient to portal') . ": " . $result['errmsg'];