Login: Difference between revisions

From nuBuilderForte
Jump to navigation Jump to search
No edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
There a number of ways to log into nuBuilder Forte...
There are a number of ways to login to nuBuilder Forte...


====Manual Login====
===Manual Login===
#Goto the web directory nuBuilder Forte has been installed.
 
#Go to the web directory nuBuilder Forte has been installed.
#Type in Username
#Type in Username
#Type in Password
#Type in Password
#Hit Enter
#Hit Enter


====Auto Login====
===Auto Login===
 
 
Available Parameters
*u - Username
*p - Password
*f - Form ID
*r - Record ID
*h - Home Page ID


By passing certain parameters to index.php you will be able to...
==== Parameter passing in GET url ====
*Login Automatically to the User's Home Page. - '''index.php?&u=1&p=1'''
By passing certain parameters to '''index.php''' you will be able to...
*Login Automatically to a certain Form and Record. - '''index.php?&u=1&p=1&f=nublank&r=-1'''
*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 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. - '''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 using ajax to call the nuBuilder API functions in the '''nuapi.php''' file.

Latest revision as of 07:45, 1 February 2021

There are a number of ways to login to nuBuilder Forte...

Manual Login

  1. Go to the web directory nuBuilder Forte has been installed.
  2. Type in Username
  3. Type in Password
  4. 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 using ajax to call the nuBuilder API functions in the nuapi.php file.