Login

From nuBuilderForte
Jump to navigation Jump to search

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.