Disable password change

LordZed

Joined: 2012-08-30
Posts: 9
Posted: Thu, 2012-08-30 15:34

Hi! Can I somehow disable for a user the option to change his password? I thought I'm not the first who needs this, but I couldn't find anything about it...

 
LordZed

Joined: 2012-08-30
Posts: 9
Posted: Thu, 2012-08-30 20:12

Just in addition: I was looking at the core module and the user_profile.html.php in the views folder. There's something at the beginning, that makes me hope that what I want to do (disable profile editing by user) is already possible and I just did not found out how... there is the following line:

<? if ($editable): ?>

and after that all the edit buttons in the profile. Where does this variable come from and how can I set it!? ;)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-08-30 23:08

I think a better way to do this would be make a module that can be extendable to remove other things you don't want either.
Start with adding

<script>
$('div.ui-helper-clearfix>a:contains("Change password")').hide();
</script>

to page.html.php of the the theme you are using just before the </body> tag.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team