What is needed here is an option in "User Accounts" allowing the admin to approve or disapprove of the use of the password changer by user. If a user is allowed to change his password, the password changer button will appear in the template. If not, it is not a user option.
It is so simple to make, I wonder of such a request
On the base, it is necessary to use the groups.
Create a group: '
canchangepass'
To authorize the use of the change of password:
{.switch|
canchangepass|;|{.get account||member of.}|{:
<a onclick="url">change password</a> :}|.}
Or more simply (for the useless)
{.if |{.member of|
canchangepass.}|{:
<a onclick="url">change password</a> :}.}
change the blue text by the correct request and set the user as memeber of '
canchangepass'
Note from the wiki:
This is different from {.get account||member of.} because this latter form will consider only direct first-level membership, while {.member of.} will actually consider membership at any level.
{.if|{.and|%user%
|{.not|{.match|guest;anonymous|%user%.}/not.}
|{.member of|canchangepass.}
/and.}
|{: <a onclick="url">change password</a> :}
/if.}