Skip to main content

Function: updateContractorPassword()

updateContractorPassword(_prev, formData): Promise<UpdatePasswordState>

Defined in: src/server/actions/contractor-auth.ts:198

Set a new password for the currently-signed-in user (the recovery session established by /api/auth/contractor-recovery, or a contractor changing it while logged in). On success the session is now password-authenticated; send them to their home.

Parameters

_prev

UpdatePasswordState

formData

FormData

Returns

Promise<UpdatePasswordState>