Disable user profile editing?

How to prevent registered users from changing their data, such as their username, etc. (via edit profile) in the interface?

+3


source to share


2 answers


open components\com_users\models\forms\profile.xml

and then edit:



<field name="password1" type="password"
  readonly="true"
/>

      

+2


source


You can enter input fields in the "disabled" attribute and do not want to be changed. Most users will not discuss the source code of the page with you.



<input type="text" disabled="disabled" />

      

+1


source







All Articles