coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Tobster on August 29, 2005, 05:29:29 PM

Title: Users must not change password!!!! How???
Post by: Tobster on August 29, 2005, 05:29:29 PM
I have this cool gallery! THNX Coppermine!!!!!

I have myself as Admin and then I have created one single user called VIP.

Then I have this category which only the VIP can see...

The VIP password I give to certain people. They all use the same then to access this single category containing pictures.

But I don't want anyone to mess this up by changeging the password.... How do I prevent this?

Regards
Tobster
Title: Re: Users must not change password!!!! How???
Post by: kegobeer on August 29, 2005, 05:43:04 PM
In profile.php, find

case 'change_pass' :
        if (!USER_ID || defined('UDB_INTEGRATION')) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);


change to

case 'change_pass' :
        if (!USER_IS_ADMIN || defined('UDB_INTEGRATION')) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);


If you have your gallery bridged to a bbs, you'll have to edit your bbs to prevent password changes.
Title: Re: Users must not change password!!!! How???
Post by: Tobster on August 29, 2005, 10:24:19 PM
QuoteIf you have your gallery bridged to a bbs, you'll have to edit your bbs to prevent password changes.

I'm pretty new at this, so I don't quite know what you mean...

If I do as you say, what wil happen in the future if sone wants to register at my gallery?
I mean I'd like it to be for only this user that change of password is prevented...