Users must not change password!!!! How??? Users must not change password!!!! How???
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Users must not change password!!!! How???

Started by Tobster, August 29, 2005, 05:29:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tobster

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

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Tobster

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...