/* These variables should actually be declared in 'startup.dal', but here is also OK. */
declare varchar user_name = "";
declare varchar password = "";
declare boolean has_access = $false;
User Login
This is a demo of how WebDAL can control security and access. You may try the following:
- Just click the 'login' button without entering anything.
- Login with an invalid user name (e.g. 'xxx').
- Login with a valid user name, elvis, and no password.
- Try to access any page directly before correct login. For example this page: privileged information...
- Note that none of the pages can be accessed directly through the Web Server, because only WebDAL knows where to find the pages.
- Now login with user name 'elvis' and password 'the king'.