"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 "[email protected]" 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.