Manual:Hooks/SpecialPasswordResetOnSubmit

Details

 * $users: array of User objects
 * $data: array of data submitted by the user
 * &$error: string, error code (message name) used to describe to error (out parameter). The hook needs to return false when setting this, otherwise it will have no effect.