Pascal-Georges Posted October 29, 2014 Share Posted October 29, 2014 Hello, I changed my computer and do not have the admin datas ( ID & Password ) anymore. How can I proceed to access again as admin to my web-shop ? Thanks. P.G.R. Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 29, 2014 Share Posted October 29, 2014 It depends on the version of your shop and what type of login is being used - on page, popup or both. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
microlightstore Posted October 30, 2014 Share Posted October 30, 2014 1 Link to comment Share on other sites More sharing options...
ken0306 Posted October 31, 2014 Share Posted October 31, 2014 login to your database to check your username and update your password Link to comment Share on other sites More sharing options...
Pascal-Georges Posted November 4, 2014 Author Share Posted November 4, 2014 It depends on the version of your shop and what type of login is being used - on page, popup or both. Thank you Jack. I do not know the Version of my shop (where do I cann see it ?) and the log-in is on page... Thank you for your help. PG Link to comment Share on other sites More sharing options...
Pascal-Georges Posted November 4, 2014 Author Share Posted November 4, 2014 It depends on the version of your shop and what type of login is being used - on page, popup or both. I have on page log-in and do not know the _Version of OsC. Where can I see it ? Link to comment Share on other sites More sharing options...
burt Posted November 4, 2014 Share Posted November 4, 2014 Use phpmyadmin to truncate (empty) the administrator table in your database. Do not delete the table. Simply empty it. Do this in your hosting control panel. If you do not know how, ask your host to do it. Then visit your admin page and you will be asked to input a new username and password. Now login using the new username and password. Link to comment Share on other sites More sharing options...
quetevendo Posted November 4, 2014 Share Posted November 4, 2014 Makeexactly what said Burt. It's the only way.regards Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 4, 2014 Share Posted November 4, 2014 @@Pascal-Georges If your shop is 2.3, deleting the database table will work. Otherwise it won't. Look in your includes directory to see if there is a template_top.php file. If there is, then it is a 2.3 shop. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
burt Posted November 5, 2014 Share Posted November 5, 2014 Ignore the advice of the previous poster - deleting the table will not work. You need to empty the table using phpmyadmin. Link to comment Share on other sites More sharing options...
multimixer Posted November 5, 2014 Share Posted November 5, 2014 Additional to what @@burt suggested - to empty and not delete table administrators - it could be that you - or any other user who has the same issue - has htaccess protection added In this case, you need to do following 1) Open file catalog/admin/.htaccess and delete following lines ##### OSCOMMERCE ADMIN PROTECTION - BEGIN ##### AuthType Basic AuthName "osCommerce Online Merchant Administration Tool" AuthUserFile /home/xxx/xxx/xxx/xxx/admin/.htpasswd_oscommerce Require valid-user ##### OSCOMMERCE ADMIN PROTECTION - END ##### 2) Open file catalog/admin/.htpasswd_oscommerce and delete all content of the file, not the file itself My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Pascal-Georges Posted November 5, 2014 Author Share Posted November 5, 2014 Use phpmyadmin to truncate (empty) the administrator table in your database. Do not delete the table. Simply empty it. Do this in your hosting control panel. If you do not know how, ask your host to do it. Then visit your admin page and you will be asked to input a new username and password. Now login using the new username and password. Thank You Burt ! I went -with the phone-help from my space-provider- in the admin-area of my shop: There I found the ID and passwort and erased them. Afterward, I gave (always with the phone-help from my space-provider) a new ID and password and saved. Unfortunately, it did not work : I still cannot acess my shop as admin. Can You be so kind to help me further ? Thanks PGR Link to comment Share on other sites More sharing options...
burt Posted November 5, 2014 Share Posted November 5, 2014 You need to EMPTY the database table called "administrators". That is all. Then visit your login page to add a new admin. No one can help you more without access to your admin area and your phpmyadmin. Please do not post links to these in the forum. Find someone suitably qualified to help at http://www.oscommerce.com/forums/forum/79-commercial-support-enquiries/ It should cost you very little. Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 5, 2014 Share Posted November 5, 2014 @@Pascal-Georges If your shop is 2.3, deleting the database table will work. Otherwise it won't. Look in your includes directory to see if there is a template_top.php file. If there is, then it is a 2.3 shop. @@Pascal-Georges This should have said emptying the database table will not work, as proposed by the two previous posts before it. I apologize for any confusion it may have caused. But, again, emptying it will only work in 2.3. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
GMDave Posted November 25, 2014 Share Posted November 25, 2014 How about a password reset function? You have one for users already, just leverage that. Also, I find it odd that you have a separate table for administrators, why not just make it an attribute of a user record? Obviously I have not studied the schema before I throw that out there, so it may not be feasible, but password reset is a best practice, and you need to have one for your admins. Link to comment Share on other sites More sharing options...
burt Posted November 25, 2014 Share Posted November 25, 2014 I dont really understand how a shopowner can forget a password to their own shop. Link to comment Share on other sites More sharing options...
nielot Posted April 18, 2015 Share Posted April 18, 2015 Hi guys I have problem i cant login to control panell. I delete all lanes on database tabel administrators - ts empty in admin/htacess i delete all protection lanes in catalog/admin/.htpasswd_oscommerce -> i delete all lanes of code and if i try use mydomain.com/cp/login.php website want login and password .... i using the newest oscoomerce shop Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.