MyBB Community Forums

Full Version: How do I make it so a group/user can't change their password?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I make it so a user cannot change the password??
I've been searching for tutorials and plugins, but they didnt help
In the permissions, there is no 'change password' permission.. ??


How do I change it Sad
Edit the theme templates to remove the option from the UserCP.
Delete the appropriate line in usercp_nav_profile.
Re HLFadmin suggestion, deleting elements from the theme only make this option "invisible".
The forum option still keeps available and can be used by any user with knowledge of the original form elements and skills.

To really prevent changing a password, you need to drop the elements AND disable the appropriate PHP code section in members.php.

[ExiTuS]

PS.
I would like to know any reason why prevent users from passowrd changing.
(2021-05-31, 10:05 PM)[ExiTuS] Wrote: [ -> ]PS.
I would like to know any reason why prevent users from passowrd changing.

Because the MyBB i have is a demo..
Use the following plugin:
https://community.mybb.com/mods.php?action=view&pid=20

File:
usercp.php

Action:
password (optional)
do_password (required)

You can ignore the optional action so users can see the page, as the required action is the one that handles the form submission.

Edit: Please note that this won't work on the ACP.