[SOLVED] reset admin password

PoorBC
PoorBC's picture

Joined: 2011-01-28
Posts: 3
Posted: Fri, 2011-01-28 01:12

I installed gallery3 on one server, then moved it to another. I then found I couldn't log on as admin. When I choose to reset admin password, I never get a notice in my email.

I have access to the users table via phpmyadmin. Can I fix it from there? Can I change the password and encrypt it?

Thanks for any assistance.

 
PoorBC
PoorBC's picture

Joined: 2011-01-28
Posts: 3
Posted: Fri, 2011-01-28 01:47

never mind...figured it out minutes after posting. Thanks anyway.

 
Ted Socolofsky

Joined: 2010-11-21
Posts: 3
Posted: Sat, 2011-01-29 18:25

Please tell me what you did.
I have the same problem and can't figure it out.

 
PoorBC
PoorBC's picture

Joined: 2011-01-28
Posts: 3
Posted: Sat, 2011-01-29 23:42

In phpmyadmin, I entered my password in the text field, then chose MD5 on the left side. When I saved changes, all was well.

 
Ted Socolofsky

Joined: 2010-11-21
Posts: 3
Posted: Sat, 2011-01-29 23:52

Thanks PoorBC.
I can't figure out how to run phpmyadmin,
but I found an answer that worked for me.
On Thu, 2010-09-02 05:36 bharat posted this:
-----
Create a file called modules/gallery/controllers/x.php and put this in it:

<?
class x_Controller extends Controller {
  public function login_as_admin() {
    auth::login(identity::admin_user());
    url::redirect(item::root()->abs_url());
  }
}

Then browse to /gallery3/index.php/x/login_as_admin and you'll be logged in as an admin.
Then go to Admin > Users and change passwords till you're happy.
Don't forget to delete x.php!
-----

 
SexDrugsOverclocking

Joined: 2010-09-06
Posts: 10
Posted: Fri, 2011-04-29 04:51

Just wanted to say thanks for posting this! Helped me and FAST.....

 
Dar2

Joined: 2010-11-17
Posts: 20
Posted: Thu, 2011-07-21 03:15

doesn't help

 
Tessalief

Joined: 2009-07-18
Posts: 48
Posted: Thu, 2011-07-21 08:42
Dar2 wrote:
doesn't help

Try This

 
Dar2

Joined: 2010-11-17
Posts: 20
Posted: Thu, 2011-07-21 11:46

no luck :(

 
jaylevan

Joined: 2011-12-21
Posts: 2
Posted: Wed, 2011-12-21 22:10

I created an x.html page and when I go to
gallery/index.php/x/login_as_admin
I get this page.

Dang... Something went wrong!
We tried really hard, but it's broken.
Hey wait, you're an admin! We can tell you stuff.
But it didn't help me.

By the way I didn't use gallery3 because my folder is called gallery.

Any other thoughts about this?
Thank you in advance for any help.

Jay