<# start list for webuser; include when webuser.username == "<#[request.username]#>”
and webuser.password == “<#[request.pass]#>”
and webuser.status == “active”;
hide pager both;

#>
<# start row #>
<# grant access to members #>

<# set cookie.first to "<# webuser.first #>“;
set cookie.last to “<# webuser.last #>“;
set cookie.email to “<# webuser.email #>“;
set cookie.cid to “<# webuser.id #>“;
set cookie.company to “<# webuser.company #>“;
redirect to “<#[request.goto]#>“;
#>
<# end row #>
<# no results #>
<# redirect to "/?page=member_logon&message=Logon%20Failed&goto=<#[url.goto]#>“;
#>
<# end no results #>
<# end list #>