create-warlock 4.1.10 → 4.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,15 +16,13 @@ export async function forgotPasswordService(email: string): Promise<void> {
16
16
  // Find user by email (silent fail for security)
17
17
  const user = await getFirstUserService({ email });
18
18
 
19
- // Create OTP
20
- const otp = await createOtpService({
19
+ // Create a password-reset OTP. Wire a mail service to deliver its code —
20
+ // e.g. `sendPasswordResetEmail(user, otp.get("code"))`.
21
+ await createOtpService({
21
22
  target: email,
22
23
  channel: "email",
23
24
  type: "password-reset",
24
25
  userId: user.id,
25
26
  userType: user.userType,
26
27
  });
27
-
28
- // TODO: Send email with OTP code using a mail service
29
- // await sendPasswordResetEmail(user, otp.get("code"));
30
28
  }