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