$_POST['username']), 30, true); } catch (NotFoundException $e) { flash_error("Invalid username."); redirect("/"); } if($sUser->VerifyPassword($_POST['password'])) { $sUser->Authenticate(); } else { flash_error("Invalid password."); redirect("/"); } } redirect("/");