Thread:Project:Support desk/Additional registration information/reply

You could possibly write an extension using UserCreateForm hook. Maybe base it off how captcha extensions work

The code related to the login form isn't exactly the prettiest part of MediaWiki...