Replace React/Vite frontend + Fastify API with a single PHP application. - Front controller router in public/index.php (clean URLs via .htaccess) - Session-based auth (no JWT) — register, login, verify email, forgot/reset password, logout - Stripe checkout sessions, billing portal, webhook handler (checkout.session.completed, subscription.updated/deleted) - License IP change via internal licensing server API - PHP classes: DB (PDO), Auth, Mailer (PHPMailer), StripeClient - Views: home, pricing, install, login, register, dashboard, verify-email, forgot-password, reset-password, 404 - Tailwind CSS via CDN — no build step required - Composer dependencies: stripe/stripe-php, phpmailer/phpmailer, vlucas/phpdotenv, ramsey/uuid - CSRF protection on all POST forms - PRG pattern with session flash messages Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
<?php $pageTitle = 'Set New Password — NixPanel'; ?>
|
|
|
|
<div class="min-h-[80vh] flex items-center justify-center px-4 py-16">
|
|
<div class="w-full max-w-md">
|
|
<div class="text-center mb-8">
|
|
<h1 class="text-3xl font-bold text-white">Set new password</h1>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<form method="POST" action="/reset-password" class="space-y-4">
|
|
<?= csrf_field() ?>
|
|
<input type="hidden" name="token" value="<?= e($token) ?>">
|
|
|
|
<div>
|
|
<label class="block text-sm text-gray-400 mb-1.5">New password</label>
|
|
<input type="password" name="password" required minlength="8"
|
|
class="input" placeholder="Min 8 characters" autofocus>
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm text-gray-400 mb-1.5">Confirm password</label>
|
|
<input type="password" name="password_confirm" required minlength="8"
|
|
class="input" placeholder="Repeat password">
|
|
</div>
|
|
|
|
<button type="submit" class="btn-primary w-full justify-center py-3">Update password</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|