Forums / Developer / Override datatype "User account"

Override datatype "User account"

Author Message

Sébastien Morel

Tuesday 23 January 2007 3:29:35 am

Hi,

I want to add a filter in the registration of a user, I want to filter the domain name.

An user who have a domain name forbidden hasn't the permission to register.

With a hack in the usertype.php and a little file.ini to define the allowed domain name it's ok and it's easy.

But I would kown if there is an another method to do.

I thought to create a new datatype user_account_particular and override the function validateObjectAttributeHTTPInput but if I change the datatype user_account in the class user, will eZpublish work again ? the user_account isn't a basic datatype ?

How to extend/override the user_account validation function validateObjectAttributeHTTPInput ? is it possible ?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)