Manual:$wgNewPasswordExpiry

Details
The time, in seconds, after which an emailed temporary password expires.