$_POST['username']), 0, true); if($sUser->VerifyPassword($_POST['password'])) { $sUser->Authenticate(); redirect("/dashboard"); } else { $sError = "The password you entered is incorrect. Did you forget your password?"; } } catch (NotFoundException $e) { $sError = "That username does not exist."; } } } $sPageContents = NewTemplater::Render("login/form", $locale->strings, array('error' => $sError));