If you're looking for a sample implementation of this, there's an example of this in the cas module. Cas is a single sign-on module that when enabled, gives you an option of disabling the users ability to edit passwords (or email addresses).
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Neil Coghlan Sent: Sunday, May 30, 2010 11:02 AM To: support@drupal.org Subject: Re: [support] Can I prevent user from changing his password?
you could look into using hook_form_alter on the user_profile_form
----- Original Message ----- From: "Bob Smither" Smither@C-C-I.com To: support@drupal.org Sent: Sunday, May 30, 2010 2:55 PM Subject: Re: [support] Can I prevent user from changing his password?
On Sun, 2010-05-30 at 10:27 -0700, Domenic Santangelo wrote:
On May 30, 2010, at 8:30 AM, Bob Smither wrote:
I found where I can keep them from changing their login name, but I
have not found how to prevent them from changing their password to a
weak
password.
You could always hide the password field if you don't want them to
change
it at all
Maybe you could! I'm not sure how to do that. I assume it requires
an
edit to ... what?
Thanks!
Bob Smither Smither@C-C-I.com
-- [ Drupal support list | http://lists.drupal.org/ ]