Thursday 01 October 2009 2:52:49 am
Hi, I'd like to add to extra validation on the user name entered by a new user (e.g no @ or space in the user name)
I've seen that the verifications are done in /kernel/classes/datatypes/ezuser/ezusertype.php in the function function validateObjectAttributeHTTPInput( $http, $base, $contentObjectAttribute )
The code I'm interested in is :
$existUser = eZUser::fetchByName( $loginName );
if ( $existUser != null )
{
// ez code in case this uaser already exists
}
// THIS IS WHERE I'D LIKE TO ADD EXTRA CHECKS
$isValidate = eZMail::validate( $email );
// all other validations ...
How can I do that without modifying the kernel (which I'd rather avoid of course :)) ?
Thank you very much in advance Benoit
|