fix: add layout and minor updates

This commit is contained in:
Mythie
2023-09-19 13:34:54 +00:00
parent 34c652ab54
commit 6e791b6e91
20 changed files with 217 additions and 289 deletions

View File

@@ -0,0 +1,18 @@
import { prisma } from '@documenso/prisma';
type GetResetTokenValidityOptions = {
token: string;
};
export const getResetTokenValidity = async ({ token }: GetResetTokenValidityOptions) => {
const found = await prisma.passwordResetToken.findFirst({
select: {
id: true,
},
where: {
token,
},
});
return !!found;
};