MCPcopy Index your code
hub / github.com/epicweb-dev/epic-stack / resetUserPassword

Function resetUserPassword

app/utils/auth.server.ts:92–110  ·  view source on GitHub ↗
({
	username,
	password,
}: {
	username: User['username']
	password: string
})

Source from the content-addressed store, hash-verified

90}
91
92export async function resetUserPassword({
93 username,
94 password,
95}: {
96 username: User['username']
97 password: string
98}) {
99 const hashedPassword = await getPasswordHash(password)
100 return prisma.user.update({
101 where: { username },
102 data: {
103 password: {
104 update: {
105 hash: hashedPassword,
106 },
107 },
108 },
109 })
110}
111
112export async function signup({
113 email,

Callers 1

actionFunction · 0.90

Calls 1

getPasswordHashFunction · 0.85

Tested by

no test coverage detected