create-warlock 4.1.10 → 4.1.11
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.
- package/package.json +1 -1
- package/templates/warlock/skills/api-design/SKILL.md +461 -0
- package/templates/warlock/skills/code-standards/SKILL.md +595 -0
- package/templates/warlock/skills/data-and-persistence/SKILL.md +330 -0
- package/templates/warlock/skills/git-workflow/SKILL.md +282 -0
- package/templates/warlock/skills/module-boundaries/SKILL.md +283 -0
- package/templates/warlock/skills/observability-and-resilience/SKILL.md +306 -0
- package/templates/warlock/skills/security-baseline/SKILL.md +352 -0
- package/templates/warlock/skills/testing-strategy/SKILL.md +323 -0
- package/templates/warlock/src/app/auth/services/forgot-password.service.ts +3 -5
|
@@ -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
|
-
|
|
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
|
}
|