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 ...