How does a customer change their preference to accept marketing?

How does a customer change their preference to accept marketing?

Hi,
How does a customer change their preference to accept marketing (if they had previously checked the box not to opt-in) ?