Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

reset.php for changing admin paswword isnt working


sash_007

Recommended Posts

Posted

Hello friends,

I have forgot my store admin password for that i have used this addon http://addons.oscommerce.com/info/5857

but it failed before that i tried this method refeered in this thread

 

http://www.oscommerce.com/forums/index.php?showtopic=283912&st=0&gopid=1492607entry1492607

 

If you go to your administrators table in phpmyadmin, you will see your user name and hashed password. Copy them to a text editor - so you can put them back if need be - then delete them from the administrators table. If it works out, the next time you access your admin, it should ask you to input a new user name and password.
Posted

Hello friends,

I have forgot my store admin password for that i have used this addon http://addons.oscommerce.com/info/5857

but it failed before that i tried this method refeered in this thread

 

http://www.oscommerce.com/forums/index.php?showtopic=283912&st=0&gopid=1492607entry1492607

Can you describe what the password entry box looks like? Is it a form on an osC page or is it a pop up window?

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

The reset password script will let you know if you are using htaccess over the normal log in.

 

Check that fopen() is set to true, to test make a php.ini file and add allow_url_fopen = On; to it, uplod it to your admin folder and see if this helps.

 

 

Possibly it will not but it does cross off one of the items on the list of what it could be. Do you have any other problems with data entry?

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

And what happens now when you enter a username and password here?

 

after that when i tried to login

it says

Error: Invalid administrator login attempt.

Posted

after that when i tried to login

it says

Error: Invalid administrator login attempt.

Most likely this has to do with the fact that you get a 302 message (redirection to site without www) when going to that admin directory (name of site edited out):

curl -v http://www.yoursite.com/store/admin/
* About to connect() to www.yoursite.com port 80 (#0)
*   Trying 69.167.137.119... connected
* Connected to www.yoursite.com (69.167.137.119) port 80 (#0)
> GET /store/admin/ HTTP/1.1
> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> Host: www.yoursite.com
> Accept: */*
> 
< HTTP/1.1 302 Moved Temporarily
< Date: Sun, 14 Mar 2010 09:12:06 GMT
< Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
< X-Powered-By: PHP/5.2.11
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: osCAdminID=6d0ff2fd7df1e8bd369b18d4f1608650; path=/store/admin/
< Location: http://yoursite.com/store/admin/login.php?osCAdminID=6d0ff2fd7df1e8bd369b18d4f1608650
< Content-Length: 0
< Content-Type: text/html
< 
* Connection #0 to host www.yoursite.com left intact
* Closing connection #0

Note the redirect to the site without www prepended....

 

And of course it is a good idea to rename the admin directory to something less obvious and add .htaccess protection on top of that.

Posted

Most likely this has to do with the fact that you get a 302 message (redirection to site without www) when going to that admin directory (name of site edited out):...

Note the redirect to the site without www prepended....

 

And of course it is a good idea to rename the admin directory to something less obvious and add .htaccess protection on top of that.

 

Jan, Can you post a specific resolution. I am getting the same error after applying the reset.php. It allows me to create administrator but then the login does not work. Thanks, Mayda

Posted

Most likely this has to do with the fact that you get a 302 message (redirection to site without www) when going to that admin directory (name of site edited out):

curl -v http://www.yoursite.com/store/admin/
* About to connect() to www.yoursite.com port 80 (#0)
*   Trying 69.167.137.119... connected
* Connected to www.yoursite.com (69.167.137.119) port 80 (#0)
> GET /store/admin/ HTTP/1.1
> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> Host: www.yoursite.com
> Accept: */*
> 
< HTTP/1.1 302 Moved Temporarily
< Date: Sun, 14 Mar 2010 09:12:06 GMT
< Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
< X-Powered-By: PHP/5.2.11
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: osCAdminID=6d0ff2fd7df1e8bd369b18d4f1608650; path=/store/admin/
< Location: http://yoursite.com/store/admin/login.php?osCAdminID=6d0ff2fd7df1e8bd369b18d4f1608650
< Content-Length: 0
< Content-Type: text/html
< 
* Connection #0 to host www.yoursite.com left intact
* Closing connection #0

Note the redirect to the site without www prepended....

 

And of course it is a good idea to rename the admin directory to something less obvious and add .htaccess protection on top of that.

can you please explain clearly what should be done step by step as i am newbie in php in oscommerce

i have a redirect of my site non www to www

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...