O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a login page

We now create a new Markdown page in the web Root asset folder, called Login.md. This page will display a simple login form to the user. When the user is redirected to this page, a query parameter called from will be available to inform the application where the redirection came from. A similar from variable will also be available in the session. After a successful login, the idea is to redirect the user back to this page. We begin by providing the simple contents of the form:

Title: Login Description: Login page to the device. Author: Peter Waher Master: Menu.md Parameter: from Login ============= <form id="LoginForm" action="/Login" method="post"> Please login by providing a user name and password: User Name: <input ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required