Forums / Developer / how to customize the useraccount datatype

how to customize the useraccount datatype

Author Message

Satheesh R

Monday 06 November 2006 10:06:28 pm

Hello all,
i'm new to eZ. i wan to customize the datatype(UserAccount).
for ex in Useraccount datatype Username field can accept 1 or more characters,
but i want to customize that, it should accept 6 or more characters not less than 6.
how can i acheive this.. pls give me a sloution.

-
R Satheesh

Thanks and Regards
R Satheesh

Claudia Kosny

Tuesday 07 November 2006 11:41:10 am

Hi Satheesh

as far as I know this is not possible with ez. If you know a bit about PHP have a look at the file \kernel\classes\datatypes\ezuser\ezusertype.php, function validateObjectAttributeHTTPInput. There can see an how the mininum length of the password is checked, so just adapt the code to check for the string length of the username.

Greetings from Luxembourg

Claudia

Satheesh R

Tuesday 07 November 2006 9:46:38 pm

Hi Claudia Kosny,
Thanks for your reply.
i'll try to modify the file you mentioned.
Thanks and regards
R Satheesh

Thanks and Regards
R Satheesh