Previous Next

Checks if a login is required for the current page, and shows the login page if necessary.

Returns a boolean value.


.checkLoginRequired( show )


show       ::=  { true | false }

The optional show determines whether the login page may be displayed if the user is not logged in and the page displayed requires it.



if (!$.udb.checkLoginRequired(true))

 return $.udb.showLogin();