Zum Inhalt springen

Forgot Password Flow

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

LaunchFast uses in house simple as heck server-side first forgot password flow to help users easily reset their password.

You can configure it in the src/pages/api/sign directory.
  1. Update the .env file or hosting provider’s environment variable to have the necessary variables for Upstash:
.env
EMAIL_PASSWORD_RESET_URL="https://launchfast-astro-ts.vercel.app/forgot-password"
  1. To simply allow users reset their password, import the <ForgotPassword /> component in your Astro page.
src/pages/forgot-password.astro
---
import ForgotPasswordComponent from '@/components/Forgot-Password.astro'
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
</head>
<body>
<ForgotPasswordComponent />
</body>
</html>