coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Wouter on January 02, 2004, 02:04:07 PM

Title: Disable "Change Password" for users
Post by: Wouter on January 02, 2004, 02:04:07 PM
Hi there,

I use Coppermine to share my photos. Therefor I create a group with one user for a specific album. That account is than used by all the visitors for that album. To prevent that one user changes the password so others cannot login anymore, I want to disable that functionality. I'm not familiar with PHP, but in de profile.php file I found this code:

$change_password_form_param = array(
    array('password', 'current_pass', $lang_register_php['current_pass'], 25),
    array('password', 'new_pass', $lang_register_php['new_pass'], 25),
    array('password', 'new_pass_again', $lang_register_php['new_pass_again'], 25),
    );


Before deleting it, can anybody tell me if deleting this will solve my problem?

Thanks!
Title: Disable "Change Password" for users
Post by: Joachim Müller on January 02, 2004, 05:46:28 PM
Having multiple users using the same login isn't recommended, but if you want that I suggest you just remove the "my profile" link from theme.php and add a "die" into "profile.php".
Refer to http://coppermine.sourceforge.net/faq.php?q=removeFeature#removeFeature

GauGau