Adding a user authentication login page to Hot Towel SPA

350 Views Asked by At

I'm developing a single page application using Hot Towel and I'd like to add a page that will handle user authentication. I have a login page that opens inside the application that makes a call to an API that returns the user details required.

What I would like to do is to move this page to before the application start (before the splash page is shown). At the moment, the application is triggering in VS2013 as soon as it is started. How can I add a login page to the project that will delay the firing of the main.js until after the login process has completed?

1

There are 1 best solutions below

1
On

Main.js fires off at the bottom of your index.cshtml. So you can probably add code in to the <script> contained within the section.