Can't log in as Admin

larryl

Joined: 2002-09-16
Posts: 47
Posted: Sun, 2012-04-29 03:26


Gallery version (not just "2"): 2.3.2
PHP version (e.g. 5.1.6): 5.2.17
PHPInfo Link (see FAQ): http://www.lozuk.com/gallery/lib/support/index.php?phpinfo
Webserver (e.g. Apache 1.3.33): 2.0.64
Database (e.g. MySql 5.0.32): 5.0.95
Activated toolkits (e.g. NetPbm, GD): GD
Operating system (e.g. Linux): linux
Browser (e.g. Firefox 2.0): Google Chrome 18.0.1025.162 m

I can't log in to Admin. The account is now locked out.

Captcha is not working correctly. It's not doing the email password reset even though I'm typing in the correct characters.

I've tried disabling captcha per the faq and resetting the module cache, but Gallery still tries to use captcha.

The emergency password reset using login.txt is not working.

I would appreciate any help.

Thanks,
Larry

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-04-29 15:51

See if this helps:
http://gallery.menalto.com/node/106164#comment-390444

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
larryl

Joined: 2002-09-16
Posts: 47
Posted: Sun, 2012-04-29 16:04

Thanks. Do you think it will matter that mine is 2.3.2? I seem ti recall that there was a significant difference.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sun, 2012-04-29 16:46

The script should work with v2.3.2.

The v2.3.2 change did not change the password hashing procedure as I had initially thought.

--
dakanji.com

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-04-29 16:38

Dayo,
not sure why there is a rash of these but perhaps your script needs to be added to the FAQ?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sun, 2012-04-29 16:59

Not sure myself.

Also not sure about adding to FAQ, I have been deleting instances where I have posted the script (I forgot the one linked) because while all the other maintenance scripts in lib/support do fairly benign things, this potentially could allow someone to take over a site.

Also, it is limited to MySQL as I wrote it mainly for my own use. I suppose that will cover most use cases but really should use G2's db abstraction layer if going into general circulation.

You can make the call I suppose.

I'll leave the linked one in place and look into expanding it later.

I might add it as an issue to address in the G2 Update Project.

--
dakanji.com

 
larryl

Joined: 2002-09-16
Posts: 47
Posted: Sun, 2012-04-29 17:38

I did get in with that script.

It's probably a good idea not to leave a link like that laying around, but I'm definitely keeping the script in a strategic location.

Thanks for your help.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-04-30 08:57

@Dave

I updated the script and reattached to the same post.

Updates done:

1. Uses G2 db absraction so should work on all db types supported by G2
2. User can give it any name they like as long at it ends in ".php" (Actually .html and .htm will also work but no need to confuse people)
3. Requires user to update/create login.txt file before they can make changes
4. Only works with G2.3.0 and above

I think it can now be safely referenced in the FAQ.

--
dakanji.com