From 9ae52d4c25947cba325bc0993c42e991a20af17a Mon Sep 17 00:00:00 2001
From: Akhil Meka
The above link expires in 48 hours
` + `Click here to register.The above link expires in 48 hours
+Go to this URL is the above link doesn't work: ${URL}
` ); return userModel @@ -95,16 +98,19 @@ export async function resetUser(userId: string, user?: AuthenticatedUser) { throw ErrUserNotFound; } + const URL = + "https://" + + process.env.SERVER_DOMAIN + + "/auth/webauthn/register?token=" + + token + + "&email=" + + userInDb.email; + const sent = await sendMail( userInDb.email, "Quicker Permits account reset", - `Click here to reset.
The above link expires in 48 hours
` + `Click here to reset.
The above link expires in 48 hours
+Go to this URL is the above link doesn't work: ${URL}
` ); }