fix(validation): validate tenant admin_email as an email (PMS-385) #290

Merged
vas2000-work merged 2 commits from fix/PMS-385-tenant-admin-email-validation into main 2026-06-17 02:31:37 +02:00
Owner

POST /api/v1/tenants accepted a malformed admin_email and persisted it to the seeded admin user; the sibling billing_email already had #[validate(email)]. Add the same to admin_email so it is rejected with a 422 field error.

Verified in-container (just pre-commit): fmt + clippy + check + unit + doc tests green.

Fixes PMS-385.

POST /api/v1/tenants accepted a malformed admin_email and persisted it to the seeded admin user; the sibling billing_email already had #[validate(email)]. Add the same to admin_email so it is rejected with a 422 field error. Verified in-container (just pre-commit): fmt + clippy + check + unit + doc tests green. Fixes PMS-385.
fix(validation): validate tenant admin_email as an email
All checks were successful
E2E / Playwright against staging (pull_request) Successful in 1m41s
Check / fmt + clippy + compile + unit/doc tests (pull_request) Successful in 3m11s
Integration / integration tests (pull_request) Successful in 8m37s
5917e76a51
POST /api/v1/tenants accepted a malformed admin_email and persisted it to
the seeded admin user; the sibling billing_email already carries
#[validate(email)] while admin_email did not. Add #[validate(email)] so
the request is rejected with a 422 field error.

#PMS-385

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merge branch 'main' into fix/PMS-385-tenant-admin-email-validation
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / fmt + clippy + compile + unit/doc tests (pull_request) Successful in 3m41s
E2E / Playwright against staging (pull_request) Successful in 58s
Integration / integration tests (pull_request) Successful in 8m39s
c86c58d171
vas2000-work deleted branch fix/PMS-385-tenant-admin-email-validation 2026-06-17 02:31:37 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-server!290
No description provided.