Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
When I do the above and pass an 8 character long password the validation seems to happen against the hashed password as I get the following error back from the API.
I expect the validation on length to be done on unhashed password. This currently prevents any server side validation being applied to a length of a password and without this validation it allows an empty password to be created with an account
Screenshots
Environment (please complete the following information):
ZenStack version: 2.02
Prisma version: 5.13
Database type: Postgresql
Additional context
Ideally this validation can just be applied to the @password field as another param called minLength
Description and expected behavior
password String @length(min: 8, max: 32) @password @omit
When I do the above and pass an 8 character long password the validation seems to happen against the hashed password as I get the following error back from the API.
I expect the validation on length to be done on unhashed password. This currently prevents any server side validation being applied to a length of a password and without this validation it allows an empty password to be created with an account
Screenshots
Environment (please complete the following information):
Additional context Ideally this validation can just be applied to the @password field as another param called minLength