feat: add email status check to verify page

Security Enhancement:
- Server-side validation of email status before allowing verification
- Only allow verifying emails in VerificationPending state
- Show "Action not possible" message for invalid states
- Extract and validate share-id on server side
- Return 404 for invalid share-ids or missing tenant emails

Implementation:
- Convert page.tsx to async server component
- Fetch location and check tenantEmailStatus
- Pass isPending prop to client component
- Add bilingual "not-allowed" translations (same as unsubscribe page)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Knee Cola
2025-12-29 20:54:14 +01:00
parent ff6f8890c5
commit db9c57472d
4 changed files with 54 additions and 2 deletions

View File

@@ -455,6 +455,10 @@
"error": {
"title": "Verification Failed",
"unknown": "An error occurred during verification. Please try again or contact your landlord."
},
"not-allowed": {
"title": "Action not possible",
"message": "The selected action cannot be performed or the passed information is invalid."
}
},
"email-unsubscribe-page": {