Forums / Developer / Override datatype "User account"

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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)