8 lines
406 B
Text
8 lines
406 B
Text
|
|
Runtime schema validation summary
|
||
|
|
|
||
|
|
Verified with `npx tsx` against exported createChangePasswordSchema(...):
|
||
|
|
- mismatched confirmPassword -> parse failed on path ["confirmPassword"] with message `no-match`
|
||
|
|
- currentPassword === newPassword -> parse failed on path ["newPassword"] with message `must-differ`
|
||
|
|
|
||
|
|
This confirms the client-side schema blocks both required validation scenarios before submission.
|