Forums / Setup & design / [Solved] Avoid user password editing in content/edit
Jeremy B.
Monday 24 August 2009 7:56:58 am
Hi,
I would like to know if anyone knows how to disable the password editing, when a user is editing his own informations ?
I assume that these fields are comming from the ezuser datatype, and displayed using ezuser.tpl. I tried to put the fields "hidden", or "disabled", but this didn't do the job, the ezuser datatype validation failed.
Can anyone help ?
Thanks for your time :)
André R.
Monday 24 August 2009 8:37:22 am
I think you can set it to hidden and set value to '_ezpassword', then it will be threated as 'not changed'.Remember to do the as same for the password confirm input field.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Monday 24 August 2009 8:50:53 am
Great !
Thank you very much André :)
Is it a common functionnality or specific to the password ?
If I have an attribute 'test', and I put a value of '_eztest' in it during editing, this attribute will remains unchanged ?
Monday 24 August 2009 9:37:45 am
Specific to the password, for normal datatypes, use hidden and set its value to the value the attribute already have.
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0002 secs