"Confirm E-Mail" field in user_account datatype

Author Message

Philip K.

Thursday 09 December 2010 1:05:23 am

Hello.

I have the problem that some users in my site are making mistakes in typing their e-mail address. for example a user types "somename@m-company.com" instead of "somename@my-company.com".

So it would be nice to have a field named "Confirm E-Mail" where the user types his e-mail address again and eZ compares these two addresses...

Has anyone ever seen a datatype like that or created a custom datatype that can handle my request??

Thanks for your help.

Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Nicolas Pastorino

Thursday 09 December 2010 3:25:27 am

Hi Philip,

Good one. As a workaround measure, you can override the ezuser datatype's edit template, enforcing this double-check on the email address with javascript. For a more accessible version of this, the datatype itself should be altered, adding server-side checks and returning warnings when not ok. This will, for now given that datatypes are not overridable through a kernel override yet, need to be built through a new datatype i think.

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Philip K.

Thursday 09 December 2010 7:33:43 am

Hi Nicolas,

thanks for your reply.

In a first step I followed your suggestion and realized this functionality with an override of the datatype/edit/ezuser.tpl in combination with javascript.

But this is only a "quick and dirty" solution and I think for the future I will create a custom datatype that meets my requirements.

Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

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 18 2025 03:06:01
Script start
Timing: Jan 18 2025 03:06:01
Module start 'layout'
Timing: Jan 18 2025 03:06:01
Module start 'content'
Timing: Jan 18 2025 03:06:02
Module end 'content'
Timing: Jan 18 2025 03:06:02
Script end

Main resources:

Total runtime0.9012 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0469152.6406
Module start 'layout' 0.00540.0022 740.687539.4844
Module start 'content' 0.00770.8923 780.1719540.7500
Module end 'content' 0.89990.0012 1,320.921912.1250
Script end 0.9012  1,333.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3571160.0002
Check MTime0.00130.1407160.0001
Mysql Total
Database connection0.00060.070010.0006
Mysqli_queries0.851894.5180570.0149
Looping result0.00060.0641550.0000
Template Total0.868996.420.4344
Template load0.00200.223620.0010
Template processing0.866996.187020.4334
Template load and register function0.00010.011310.0001
states
state_id_array0.00120.129310.0012
state_identifier_array0.00120.132520.0006
Override
Cache load0.00170.1872230.0001
Sytem overhead
Fetch class attribute can translate value0.00090.104420.0005
Fetch class attribute name0.00190.205550.0004
XML
Image XML parsing0.00090.101920.0005
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00090.1019220.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs