Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何阻止注册用户在前端更改其用户名等详细信息(通过编辑配置文件)?
打开components\com_users\models\forms\profile.xml然后编辑:
components\com_users\models\forms\profile.xml
<field name="password1" type="password" readonly="true" />
您可以在您不想更改的输入字段的“禁用”属性中。大多数用户不会摆弄您页面的源代码。
<input type="text" disabled="disabled" />