*
**/
$app->get('/login/resetPassword/', function () use($app) {
    $app->view->setData(array('pageTitle' => 'Password Reset', 'bodyClass' => 'account'));
    $app->render('passwordReset.php');
});
/**
*
* Resets the user's password and returns confirmation
*
**/
$app->get('/login/resetPassword/:userID/', function ($userID) use($app) {
    $password = randomPassword();
    try {
        $user = new \OnlineOrders\User($userID);
        $user->changePassword($password, TRUE);
        $results = sendResetEmail($password, $userID);
        $app->view->setData(array('pageTitle' => 'Advanced Tissue Client Portal Login', 'referrer' => 'resetPassword', 'persistentEmail' => $userID));
        $app->render('loginForm.php');
    } catch (Exception $e) {
        echo $e->getMessage();
    }
});
/**
*
* Register New Account View
*
**/
$app->get('/login/newRegistration/', function () use($app) {
    $app->view->setData(array('pageTitle' => 'New Account Registration', 'bodyClass' => 'account'));
    $app->render('registrationForm.php');