coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: lordprodigy on February 07, 2005, 05:43:29 PM

Title: not allow registered people to change their password
Post by: lordprodigy on February 07, 2005, 05:43:29 PM
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.
Title: Re: not allow registered people to change their password
Post by: lordprodigy on February 09, 2005, 08:38:32 PM
anyone ?
Title: Re: not allow registered people to change their password
Post by: Tranz on February 09, 2005, 09:13:23 PM
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.
Title: Re: not allow registered people to change their password
Post by: lordprodigy on February 09, 2005, 10:36:50 PM
thats a smart solution! will that affect the admin profile too? I hope not. Will try it and let you know. Thanks a lot.
Title: Re: not allow registered people to change their password
Post by: Tobster on August 29, 2005, 05:39:03 PM
Hi!

Did it work?

I have the same "problem"
Title: Re: not allow registered people to change their password
Post by: Joachim Müller on August 30, 2005, 07:15:51 AM
it does, just give it a try.
Title: Re: not allow registered people to change their password
Post by: Tobster on August 30, 2005, 07:47:47 AM
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...
Title: Re: not allow registered people to change their password
Post by: Joachim Müller on August 30, 2005, 08:23:05 AM
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?