Skip to main content

Function: adminResetContractorPassword()

adminResetContractorPassword(_prev, formData): Promise<AdminResetState>

Defined in: src/server/actions/contractorPassword.ts:26

Owner-only: reset a contractor's password. If no password is supplied a strong one is generated and returned once for the owner to relay. All of the contractor's existing sessions are revoked, so the old password (and any active login) stops working immediately. Requires the contractor to have accepted their invite (an auth user exists).

Parameters​

_prev​

AdminResetState

formData​

FormData

Returns​

Promise<AdminResetState>