Source: site.view [edit]
Function name: siteLogin
Arguments: pw,errCmd,succCmd
Description: Login to a site
Page type: webl
Render function:  
Module: maybeathome

Page source:

var err = "ERR_LOGIN_FAIL";

if (pw != nil and pw != "") then

      if (pw == "M@ybeB@by") then
         NewPage("<html>success</html>");

      else
        WubCall(errCmd, ["nil", err])
      end;
else
   WubCall(errCmd, ["nil", err])
end;