Add reset password page and update VendorsCard

Introduces a new password reset page with token validation and form handling. Removes the optional email field from the Vendor interface and its display in the VendorsCard component.
This commit is contained in:
NotII
2025-10-16 00:34:50 +01:00
parent 2800f03335
commit 8517f4c153
2 changed files with 157 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ import { fetchClient } from "@/lib/api-client";
interface Vendor {
_id: string;
username: string;
email?: string;
isAdmin: boolean;
createdAt: string;
lastLogin?: string;
@@ -63,7 +62,6 @@ export default function VendorsCard() {
<div className="space-y-1">
<div className="font-medium">{vendor.username}</div>
<div className="text-xs text-muted-foreground">
{vendor.email && `${vendor.email} · `}
Created: {new Date(vendor.createdAt).toLocaleDateString()}
{vendor.lastLogin && ` · Last login: ${new Date(vendor.lastLogin).toLocaleDateString()}`}
</div>