Login: Difference between revisions
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
The '''nuconfig.php''' file has a commented out variable '''$nuWelcomeBodyInnerHTML''' which can be customised and used as the login page. | The '''nuconfig.php''' file has a commented out variable '''$nuWelcomeBodyInnerHTML''' which can be customised and used as the login page. | ||
HTML login form code '''$welcome''' in '''index.php''' escapes the above variable and is used in the JS '''function nuLogin(nuconfigNuWelcomeBodyInnerHTML)''' defined in '''nucommon.js''' file where on absence, a default in this function is used (same as the nuconfig commented out variable). | HTML login form code '''$welcome''' in '''index.php''' escapes the above variable and is used in the JS '''function nuLogin(''nuconfigNuWelcomeBodyInnerHTML'')''' defined in '''nucommon.js''' file where on absence, a default in this function is used (same as the nuconfig commented out variable). | ||
The JS '''function ''nuLoginRequest''(u, p)''' defined in '''index.php''' processes the credentials for login. |
Revision as of 07:39, 1 February 2021
There are a number of ways to login to nuBuilder Forte...
Manual Login
- Go to the web directory nuBuilder Forte has been installed.
- Type in Username
- Type in Password
- Hit Enter
Auto Login
Available Parameters
- u - Username
- p - Password
- f - Form ID
- r - Record ID
- h - Home Page ID
Parameter passing in GET url
By passing certain parameters to index.php you will be able to...
- Login automatically to the User's Home Page. - index.php?&u=1&p=1
- Login automatically to a certain Form and Record. - index.php?&u=1&p=1&f=nublank&r=-1
- Login automatically to a certain Form and Record with a link to the User's Home Page. - index.php?&u=1&p=1&f=nublank&r=-1&h=nuuserhome
- Ask the user their password before logging into the User's Home Page. - index.php?&u=1
- Ask the user their password before logging into a certain Form and Record. - index.php?&u=1&f=nublank&r=-1
- Ask the user their password before logging into a certain Form and Record with a link to the User's Home Page. - index.php?&u=1&f=nublank&r=-1&h=nuuserhome
Customising Login HTML
The nuconfig.php file has a commented out variable $nuWelcomeBodyInnerHTML which can be customised and used as the login page.
HTML login form code $welcome in index.php escapes the above variable and is used in the JS function nuLogin(nuconfigNuWelcomeBodyInnerHTML) defined in nucommon.js file where on absence, a default in this function is used (same as the nuconfig commented out variable).
The JS function nuLoginRequest(u, p) defined in index.php processes the credentials for login.