<?php

/**
 * Landing CMS
 *
 * A simple CMS for Landing Pages.
 *
 * @package    Landing CMS
 * @author     Ilia Chernykh <landingcms@yahoo.com>
 * @copyright  2017, Landing CMS (https://github.com/Elias-Black/Landing-CMS)
 * @license    https://opensource.org/licenses/LGPL-2.1  LGPL-2.1
 * @version    Release: 0.0.5
 * @link       https://github.com/Elias-Black/Landing-CMS
 */

// Connecting main classes
require_once('../_classes/index.php');

defined('CORE') OR die('403');

$data = array();


// Catching form submit
if( !empty($_POST) )
{
	$data = User::updatePassword();
}

// Render form of changing password
$content = Utils::render(
	'forms/password.php',
	 $data
);

// Printing page
echo Utils::renderIndex($content, $data);

<?php

/**
 * Landing CMS
 *
 * A simple CMS for Landing Pages.
 *
 * @package    Landing CMS
 * @author     Ilia Chernykh <landingcms@yahoo.com>
 * @copyright  2017, Landing CMS (https://github.com/Elias-Black/Landing-CMS)
 * @license    https://opensource.org/licenses/LGPL-2.1  LGPL-2.1
 * @version    Release: 0.0.5
 * @link       https://github.com/Elias-Black/Landing-CMS
 */

// Connecting main classes
require_once('../_classes/index.php');

defined('CORE') OR die('403');

$data = isset($message) ? $message : array();


// Catching form submit
if( !empty($_POST) )
{
	$data = User::updatePassword();
}

// Render form of changing password
$content = Utils::render(
	'forms/password.php',
	 $data
);

// Printing page
echo Utils::renderIndex($content, $data);

Fix for display messages from User class.
Fix for display messages from User class.
