Auto Demo login

Auto Demo login
The extension is created to help fellow opencart developers to show their admin extensions to potential customers, without need the customer to type demo/demo in the login screen.

By adding "autologin" in the url of your shop, the extension will login automatically the user "demo" with password "demo". There is no difference between this and submitting the form, so you could disable or delete the user and the the autologin will not work.

There is no particular usage of this extension for "normal" opencart users. It's only for developers.

Here is example:

So let's say your extension is like:
http://opencartdemo.yourserver.com/admin/index.php?route=extension/yourextension

Then by using the extension and adding &autologin in the url your potential customers will land exactly on the extension screen.

Here is a demo:
Instant Product Editor Demo (look ma' no login screen :)).

The logic is very simple:
1. force method to be POST
2. set username and password post vars to "demo"
3. set redirect url to the same url requested, but without "autologin" in it.

Check the source to see how it's done, there is nothing special.

--

Take a look on my other extensions




Download
  • Developed by OpenCart Community
  • 12 Months Free Support
  • Documentation Included

Rating

Compatibility
2.3.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1

Last Update
16 Apr 2019

Created
16 Jul 2018
104 Downloads
1 Comments
nchankov
nchankov
Member since: 12 Jan 2011

View all extensions Get Support