theoth
theoth

Reputation: 127

Disable user profile edit?

How do I stop registered users from changing their details like their username etc (via edit profile) in the frontend?

Upvotes: 4

Views: 8108

Answers (2)

bhavesh Khatri
bhavesh Khatri

Reputation: 41

open components\com_users\models\forms\profile.xml and then edit:

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

Upvotes: 2

michaeltintiuc
michaeltintiuc

Reputation: 671

You can at the 'disabled attribute to the input fields u don't want to be changed. Most of the users won't fiddle around with you page's source code.

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

Upvotes: 1

Related Questions