Login / Logout Forms

Top  Previous  Next

Now we will provide login and logout functionality on the web application.

Steps:

1.Open the "index" page.
2.Locate the element "mor > Security > Login" on the library explorer and place it into the page.
3."Login" element is a conditional panel that has two conditions which are "NotLoggedIn" and "LoggedIn". Double-click on the element to open the Conditions dialog.
4.You currently see the content of the "NotLoggedIn" condition. Right-click on the element and choose command "Locate in project explorer" to see the conditions of the conditional panel element. Double-click on the "NotLoggedIn" node on the project explorer to force the editor to show the content of the "LoggedIn" condition.
5.You see there is only one text element that welcomes the user after he logs on. Place "mor > Security > Logout" library element below this text element. That will provide a logout link to the logged in users. Since the element is placed in "LoggedIn" condition area it will not be visible to the users which are not yet logged in.

 
The implementation of Login / Logout functionalities completed. Now we will protect the pages and the commands using Checkpoints.