not allow registered people to change their password not allow registered people to change their password
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

not allow registered people to change their password

Started by lordprodigy, February 07, 2005, 05:43:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lordprodigy

hello,

I would like to know how I can lift the possibility of registered people to change their password. I am creating a friends user account and i only want them to see the pics, and not being able to play with other stuff. I am going to choose a password and login for them.

Thanks.


Tranz

In profile.php find and delete (or comment out):
            <input type="submit" name="change_pass" value="{$lang_register_php['change_pass']}" class="button">


I don't think they can access the form to change the password without that button. If there is a way, then it's possible to disable the function and the form that makes the change password form.

lordprodigy

thats a smart solution! will that affect the admin profile too? I hope not. Will try it and let you know. Thanks a lot.

Tobster


Joachim Müller


Tobster

okay  :)

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

Joachim Müller

That's why the password field is only disabled in the profile page (a user can only access his profile once he alread is registered), the password field on the registration page stays. Users can still register, but once they registered, they can't change their password (that's your request, isn't it?). Although I find it silly in the first place to disallow users to change their password, that's what above mentioned modification does. As suggested above: just apply the modification and then find out if registration still works. Typing your question just took the same time as applying the modification and testing things, why don't you just try it?