coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: monstermind on June 08, 2008, 06:09:46 PM

Title: [Solved]: Problem logging in
Post by: monstermind on June 08, 2008, 06:09:46 PM
Hi,

For some weird reason, I can no longer login with my admin user/pass. I doesn't recognise my username when I use the 'forgot password'-feature. When I browse the dbase, I do see a user 'admin' with an long, encrypted password. I tried editting this field to set a new password, but that does not work.

How can I get access again as an administrator?

Thanks a lot,

Robert
Title: Re: Problem logging in
Post by: just_some_guy on June 08, 2008, 06:25:24 PM
Firstly clear your cookies and try to login, if that doesnt work use a md5 hash tool (see here (http://www.google.com/search?hl=en&q=md5+encrypt&meta=)) and hash a new password. Using a database manager like PHPMyAdmin edit the password field for your user with the new one. Then try to login.
Title: Re: Problem logging in
Post by: monstermind on June 08, 2008, 06:40:59 PM
Thanks for your suggestions.

I went to http://md5encryption.com/ to make a new password and copy/pasted it into the dbase field using PHPmyadmin. But I still cannot login... Removing cookies didn't work either...

What is the next step?

Thanks again!

Robert

Title: Re: Problem logging in
Post by: Stramm on June 08, 2008, 07:27:33 PM
why not use phpmyadmin to create the password?? While editing the user set 'function' next to user_password to md5
Title: Re: Problem logging in
Post by: monstermind on June 08, 2008, 08:13:48 PM
Thanks Stramm,

I adjusted the function to md5, and it does encrypt the password I filled out correctly. However, when trying to login, I still get: *** Couldn't log in. Try again ***

Thanks, Robert
Title: Re: Problem logging in
Post by: just_some_guy on June 08, 2008, 09:06:50 PM
Forgot about that Stramm, cheers.

Can you view your profile for the user you are trying to login? in other words: does this account actually exist on this install of Coppermine and you are not editing a users table for another gallery? Its an easy mistake to make.
Title: Re: Problem logging in
Post by: phill104 on June 08, 2008, 11:09:37 PM
You could try adminpass.php as described by SAMI in this thread.

http://forum.coppermine-gallery.net/index.php/topic,33512.msg158620.html#msg158620 (http://forum.coppermine-gallery.net/index.php/topic,33512.msg158620.html#msg158620)
Title: Re: Problem logging in
Post by: monstermind on June 09, 2008, 02:42:11 AM
Hi,

The adminpass.php solution worked, thanks a million guys!

Robert