MDL-42138 user: Require custom profile fields when registering as guest
MDL-42138 user: Require custom profile fields when registering as guest

Previously when someone registers after logging in as a guest, required
custom profile fields would not be required.

Thanks to Andreas Diendorfer for providing the patch.

dilawar/moodle