Adding Extra fields in enrollment link

Hi,

I need to capture extra filed in enrollment email like first name and last name.
I am using accounts-password package
can anyone help me on this?

Can you fetch what you need before you return the template?