Where do I find the registration validation?

Permalink
I'm new to C5 and its data structures (and still fuzzy on object oriented PHP), but fair with old style PHP, CSS, and MySQL. So doing anything is still pretty laborious, but I've been through all the forum entries I've found.

So, I'm working on a site where some of the users will be younger Boy Scouts registered by their parents. I'd like to remove the registration validation that requires a unique email, so that the parents can register themselves and then their scouts using the same email.

I've copied

concrete/single_pages/register.php
concrete/controllers/register.php

out of the concrete directory, and I've looked inside expecting to find, well, *something*. Instead I get a class declaration and a pair of empty brackets, like so:

<?php
defined('C5_EXECUTE') or die("Access Denied.");
class RegisterController extends Concrete5_Controller_Register {



}

And I haven't been able to find Concrete5_Controller_Register. I'm stumped. I haven't been able to find anything that looks like validation code. Is it somewhere and I'm just overlooking it? Or do I have to build my own inside the brackets (and if so, how is the validation working now)?

Dave

 
davefwood replied on at Permalink Reply
Oh, and if I do have to build my own, is there a code sample I can learn from?
davefwood replied on at Permalink Reply
Found it! ../concrete/core/controllers/single_pages/register.php.

Tweaked it, and took out the isUnique elseif. Seems to work fine now.

I gather I shouldn't keep my version in core. I need to track down some documentation on how the file structure is intended to be used when the corresponding file is buried deep in the core structure.

Anyway, if anyone looked at this, thank you for your time.