From a84ede6e7a3f4ccefc494312b650a312e592d353 Mon Sep 17 00:00:00 2001 From: Dave Wood Date: Sat, 25 Jan 2020 18:32:33 -0500 Subject: [PATCH] Move the `index.php` file that required authentication to `protected.php` and add a new `index.html` file that can be viewed without authentication --- index.html | 71 ++++++++++++++++++++++++++++++++++++++ index.php => protected.php | 0 templates/webTemplate.html | 17 +++------ 3 files changed, 75 insertions(+), 13 deletions(-) create mode 100644 index.html rename index.php => protected.php (100%) diff --git a/index.html b/index.html new file mode 100644 index 0000000..b103903 --- /dev/null +++ b/index.html @@ -0,0 +1,71 @@ + + + + + OTAgo Installation Demo + + + + +
+
+
+   +
+ +
+
+ +
+

About `My App`

+
+ +
+ +

+ This is an intro page, that explains a little about the app and perhaps lets the visitor know they'll need a username/password to access the protected page with the install link on it. +

+

+ Having an intro page that's open to the public just makes the install process a little easier for your customers/users, since they're not immediately presented with a login dialog when they navigate to your site. +

+

+ You can also use this space to build up some hype for your upcoming app, perhaps include an option for the visitor to subscribe to your newsletter, so they can be promptly notified when the app is available to the public. Maybe even with an intro discount or something. +

+

+ If you're on our private beta test list, or an employee of our company, you can tap the 'Next' button below to proceed to the download page. You will need your username/password to continue. +

+
+
+ Next +
+

+
+
+

+
+ +
+
+
+
+ +
+ +
+
+ + diff --git a/index.php b/protected.php similarity index 100% rename from index.php rename to protected.php diff --git a/templates/webTemplate.html b/templates/webTemplate.html index e95f3c9..d5200c9 100644 --- a/templates/webTemplate.html +++ b/templates/webTemplate.html @@ -18,13 +18,13 @@  
-

OTAgo Installation Demo

+
-

My App

+

Install `My App`

@@ -34,19 +34,10 @@

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean vel neque non sapien accumsan vulputate sed ac dolor. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aenean sollicitudin aliquet odio. + This is the protected install page for `My App`. In order to view this page, the visitor will have had to be authorized by whichever auth system you've enabled in the configuration. The initial release of OTAgo includes a `simpleAuth` option that allows you to supply a list of username/password pairs. As well as a `noAuth` option that lets everyone through the door.

- In nisl nisi, congue quis tincidunt non, pellentesque non tortor. Aenean feugiat id magna ut posuere. Praesent porta ut velit eu tristique. Nunc pellentesque mi vel nulla fringilla pharetra. -

-

- Praesent vel urna ac magna luctus dapibus vel facilisis ligula. Vestibulum efficitur, lectus nec fringilla ultricies, purus nibh volutpat neque, a luctus massa purus eget lorem. In hac habitasse platea dictumst. -

-

- Mauris egestas sapien accumsan, fringilla urna sed, dignissim eros. Nunc congue laoreet elementum. In blandit lacus eget elit convallis elementum. Proin sit amet luctus odio, non placerat est. Vestibulum in velit nec turpis efficitur blandit ac non metus. -

-

- Morbi dignissim odio ac posuere consectetur. Praesent efficitur semper metus, eu varius ligula egestas vitae. Suspendisse sem lacus, porta sit amet sapien vestibulum, finibus mattis odio. + A future version of this project may allow users to select which build of the app to install, in case you need users to be able to install older versions for regression testing etc. Feel free to submit a pull request with this feature. 😁 (Ideally this feature would read build information from a .json file that could be automatically updated by a CI/CD system.