minor change
This commit is contained in:
parent
f0621dac2e
commit
78fa417f06
|
@ -20,7 +20,7 @@ export default async function verifyEmail(
|
||||||
where: {
|
where: {
|
||||||
token,
|
token,
|
||||||
expires: {
|
expires: {
|
||||||
gte: new Date(),
|
gt: new Date(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -79,6 +79,14 @@ model VerificationToken {
|
||||||
@@unique([identifier, token])
|
@@unique([identifier, token])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model PasswordResetToken {
|
||||||
|
identifier String
|
||||||
|
token String @unique
|
||||||
|
expires DateTime
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime @updatedAt
|
||||||
|
}
|
||||||
|
|
||||||
model Collection {
|
model Collection {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
name String
|
name String
|
||||||
|
|
Ŝarĝante…
Reference in New Issue