Forums / Setup & design / user_account and User class...
Jeremy A
Monday 28 July 2008 6:55:09 am
Hello,
In Setup > Classes, then edit User class. I have : - first_name - last_name- user_account
Actually <i>user_account</i> contains email, login and password (as we can see on the regsiter page)
I would like to modify <i>user_account</i> in order to make the email non-required.
How can I do this properly ?
Thank you.
Piotrek Karaś
Monday 28 July 2008 1:21:12 pm
I believe you would have to modify (or extend) the user datatype in order to achieve that, that's kernel modification in PHP, and a bit risky. Optionally, you could modify the site.ini setting:
[UserSettings] RequireUniqueEmail=false
and fill e-mails with whatever, for example [email protected]But mind that you're loosing some system functionalities this way.
-- Company: mediaSELF Sp. z o.o., http://www.mediaself.pl eZ references: http://ez.no/partners/worldwide_partners/mediaself eZ certified developer: http://ez.no/certification/verify/272585 eZ blog: http://ez.ryba.eu
Tuesday 29 July 2008 12:56:33 am
Thank you for your answer. I have already put <i>false</i> to this setting. Actually I just need to bypass the verification of the email input, if it is empty or not. It's in the user datatype ? Or which kernel file do this ?Thank you very much.
Tuesday 29 July 2008 5:19:29 am
Look around /kernel/classes/datatypes/ezuser/* Good luck,Piotrek