addMessage("notice", "You have been logged out"); //$Lucid->fp($Lucid); //exit; $Lucid->render("login"); break; /* default: if($_SERVER['REQUEST_METHOD']=='POST'){ //Login the user $Lucid->render('account'); } */ case "password": if($_SERVER['REQUEST_METHOD']=='POST'){ require_once('classes/Customer.class.php'); require_once("classes/Db.class.php"); $Customer = new Customer(); $Customer->Db = new Db(DB_NAME, DB_HOST, DB_USER, DB_PASS); if($Customer->getPasswordByEmail($_POST['email'])){ $Customer->sendPassword($Lucid); $Lucid->addMessage("notice", "An email was sent to ".$_POST['email']." containing your username and password"); $Lucid->render("login"); } else { $Lucid->addMessage("error", $Customer->error); } } break; default: if($_SERVER['REQUEST_METHOD']=='POST'){ session_destroy(); session_start(); if(isset($_POST['email'])){ $_SESSION['email'] = $_POST['email']; } else { $Lucid->addMessage('error', "You must enter your email address to log in."); $Lucid->render('login'); } require_once('classes/Db.class.php'); require_once('classes/Customer.class.php'); $Customer = new Customer(); $Customer->Db = new Db(DB_NAME, DB_HOST, DB_USER, DB_PASS); if($Customer->login($_POST)){ // Log into site first (temporary) //$Lucid->render("account/", "secure"); $Lucid->render("account/"); } else { $Lucid->addMessage('error', $Customer->error_message); } } } ?> Password Reminder | HealthPrompts

Password Reminder

We'll Help You Remember That Too!

Enter your email below and click the "remind me" button to receive an email containing your password.

*Your cellular service provider may charge fees for incoming text messages. Please consult your service agreement for details.
SEO Website Design by Industry Forge