Manual:$wgUserEmailConfirmationTokenExpiry/en

Details
The time, in seconds, after which a email address confirmation token expires. Such tokens are sent out when a user sets their email address for the first time, or changes their email address.

If is set to false, this does not apply.