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)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:34:54
Script start
Timing: Jan 31 2025 04:34:54
Module start 'layout'
Timing: Jan 31 2025 04:34:54
Module start 'content'
Timing: Jan 31 2025 04:34:54
Module end 'content'
Timing: Jan 31 2025 04:34:54
Script end

Main resources:

Total runtime0.0145 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1328151.2109
Module start 'layout' 0.00480.0031 739.343836.6484
Module start 'content' 0.00780.0051 775.992290.0625
Module end 'content' 0.01300.0015 866.054729.9922
Script end 0.0144  896.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.4549140.0002
Check MTime0.00117.7548140.0001
Mysql Total
Database connection0.00064.346010.0006
Mysqli_queries0.003121.797530.0010
Looping result0.00000.075910.0000
Template Total0.00117.610.0011
Template load0.00085.763310.0008
Template processing0.00031.833110.0003
Override
Cache load0.00064.144710.0006
General
dbfile0.00128.347180.0002
String conversion0.00000.041240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs