The requested page has been restricted to Admins Only
<# if("<#[request.password]#>"=="<#[config.admin_password]#>") { grant access to admins; redirect to "<#[url.restricted_page]#>"; } #> <form method="post" class="form-inline" action="?restricted_page=<#[url.restricted_page as html]#>"> <div class="form-group"> <label for="password">Admin Password</label> <input type="password" name="password" required class="form-control" id="password"> </div> <input type="submit" class="btn btn-primary" value="Authenticate"> </form>
Note:For more robust end-user authentication, see the #members login examples.
The #members mini-app demonstrates dynamic security groups, and never stores plain-text passwords.
The Hashtag Markup Language provides many methods for Authentication and Access Restriction.
The Admin Authentication process demonstrated here is the simplest; a single password is set in the Hashtag Framework Configuration.
See the Members Example Mini-App for more advanced authentication demonstrations.