GetWRDAuthPages (open)

Implement standard login/passwordreset etc pages

Syntax

LOADLIB "mod::wrd/lib/pages.whlib";

OBJECT FUNCTION GetWRDAuthPages(OBJECT webdesign, RECORD options)

Parameters

OBJECT webdesign
Possible objecttypes:

Webdesign

RECORD options

Options

fallbacktologin

Fallback to the login page if not logged in. Defaults to true

ongetloginwittydata

Callback invoked for extra witty variables for the login page, if rendered

Return value

OBJECT

Page to render, if current state requires one (DEFAULT OBJECT if no special page and currently logged in or fallbacktologin unset)