Esempio n. 1
0
<?php

require_once '../common/config/config.inc.php';
require_once SOURCE_ROOT . 'components/class.validation.inc.php';
require_once SOURCE_ROOT . 'classes/class.clients_login.php';
$objClientsLogin = new ClientsLogin();
/* This is used to forgot password purpose */
if (isset($_POST['btnResetPassword'])) {
    if ($objClientsLogin->resetPassword($_POST)) {
        header('location:reset_password.php?op=result');
        exit;
    } else {
        header('location:reset_password.php?mid=' . $_POST['frmMember'] . '&code=' . $_POST['frmCode']);
        exit;
    }
}