Difference between revisions of "User Access"

From nuBuilderForte
Jump to: navigation, search
(Language)
(Forms: Action Buttons descriptions)
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Giving Users Access==
+
Back to [[Documentation]]
 +
 
 +
=Giving User Access=
  
 
Once you have created your required [[Forms]], [[Reports]] and [[Procedures]] you will need to give users access to them.
 
Once you have created your required [[Forms]], [[Reports]] and [[Procedures]] you will need to give users access to them.
Line 7: Line 9:
 
#Add a User.
 
#Add a User.
  
===Creating an Access Level===
+
==Creating an Access Level==
  
  
  
====Home====
+
===Home===
 
Choose the Form for this Access Level.
 
Choose the Form for this Access Level.
  
<div style='background-color:#D8E4FF;padding:5px'>
+
When you log in as a developer the first thing you see is the '''Home Page'''.
When you log in as a developer the first thing you see is the '''Home''' Form.
+
  
Each Access Level requires a '''Home''' Form which will be their starting point in nuBuilder Forte.
+
Each Access Level requires a '''Home Page''', which will be its starting point for Users with this Access Level.
 +
 
 +
This '''Home Page''' should be a Launch [[Forms|Form]].
 +
 
 +
<div style='background-color:#D8E4FF;padding:10px'>
 +
The code for the default User Home Page is '''nuuserhome''' (the same as User Home on the Setup Tab).
 
</div>
 
</div>
  
====Code====
+
===Code===
 
Lookup code for this Access Level
 
Lookup code for this Access Level
====Description====
+
===Description===
 
Description of this Access Level
 
Description of this Access Level
====Forms====
+
===Forms===
Add Forms that will be available to this Access Level.
+
Add Forms that will be available to this Access Level.<br>Click the checkbox to enable the following on this Form for this Access Level.
  
Click the checkbox to enable the following on this Form..
 
  
*Add
+
Action Buttons:
*Print
+
*Save
+
*Clone
+
*Delete
+
  
====Reports====
+
*Add: This Button will appear on The Browse Form and open a new/blank record in an Edit Form.
 +
*Print: This Button will appear on The Browse Form and will open a new window displaying an html table that is Formatted, Sorted and Filtered version of the Browse Form
 +
*Save: Functionality of this button is to commit changes to the selected record.
 +
*Clone: This Button will appear on the Edit Form and will be hidden until a record has been saved at least once. Functionality of this button is to create a duplicate object with the same fields ready for editing.
 +
*Delete: Functionality of this button is to delete the currently opened record
 +
 
 +
===Reports===
 
Add Reports that will be available to this Access Level.
 
Add Reports that will be available to this Access Level.
  
====Procedures====
+
===Procedures===
 
Add Procedures that will be available to this Access Level.
 
Add Procedures that will be available to this Access Level.
  
 
+
==Adding a User==
===Adding a User===
+
===Name===
====Name====
+
 
User's real name
 
User's real name
====Email====
+
===Email===
 
Email address
 
Email address
====Language====
+
===Language===
 
Select a language with a translation in [[Translations]].
 
Select a language with a translation in [[Translations]].
  
If left blank it will just use the English phrases used in nuBuilder.
+
If left blank it will just use the phrases used in nuBuilder (English).
  
====Access Level====
+
===Access Level===
 
Select a previously defined Access Level.
 
Select a previously defined Access Level.
====Login Name====
+
===Login Name===
 
nuBuilder Login Name
 
nuBuilder Login Name
====Enter New Password====
+
===Password===
 
nuBuilder Login Password
 
nuBuilder Login Password
  
 
Only used when changing passwords.
 
Only used when changing passwords.
====Reenter New Password====
+
===Confirm Password===
 
Repeat nuBuilder Login Password
 
Repeat nuBuilder Login Password
  
Only used when changing passwords.
+
==Creating Password Policies==
 +
Rules for enforcing Password policies can be created by making a Procedure with a Code of '''nuCheckPasswordPolicy'''
 +
 
 +
If a Procedure exists with this Code, it will be used to validate any Password Changes.
 +
 
 +
Setting a variable called $check to true will allow the changes to be saved.
 +
 
 +
 
 +
Here is an Example Procedure...
 +
 
 +
 
 +
 
 +
  function nuCheckPasswordPolicy() {
 +
 
 +
      $oldpw    = '#old_password#';
 +
      $newpw    = '#new_password#';
 +
     
 +
      $passwordErr = "";
 +
   
 +
      if ($newpw === $oldpw) {
 +
          $passwordErr .= "The provided New Password cannot be the same as the Current Password!<br>";
 +
      }   
 +
      if (strlen($newpw) < 8) {
 +
          $passwordErr .= "Your Password must contain at least 8 Characters!<br>";
 +
      }
 +
    if (!preg_match("#[0-9]+#",$newpw)) {
 +
        $passwordErr .= "Your Password must contain at least 1 Number!<br>";
 +
    }
 +
    if (!preg_match("#[A-Z]+#",$newpw)) {
 +
        $passwordErr .= "Your Password must contain at least 1 Capital Letter!<br>";
 +
    }
 +
    if(!preg_match("#[a-z]+#",$newpw)) {
 +
        $passwordErr .= "Your Password must contain at least 1 Lowercase Letter!<br>";
 +
    }
 +
    if(!preg_match('/[\'\/~`\!@#\$%\^&\*\(\)_\-\+=\{\}\[\]\|;:"\<\>,\.\?\\\]/', $newpw)) {
 +
        $passwordErr .= "Your Password must contain at least 1 Special Character!<br>";
 +
    }   
 +
 
 +
    if (strlen($passwordErr) > 0) {
 +
        nuDisplayError ($passwordErr) ;
 +
        return false;
 +
    } else
 +
    {
 +
        return true;
 +
    }
 +
  }
 +
 
 +
  $check = nuCheckPasswordPolicy();

Latest revision as of 18:27, 4 April 2021

Back to Documentation

Giving User Access

Once you have created your required Forms, Reports and Procedures you will need to give users access to them.

To do this you need to do 2 things

  1. Create an Access Level.
  2. Add a User.

Creating an Access Level

Home

Choose the Form for this Access Level.

When you log in as a developer the first thing you see is the Home Page.

Each Access Level requires a Home Page, which will be its starting point for Users with this Access Level.

This Home Page should be a Launch Form.

The code for the default User Home Page is nuuserhome (the same as User Home on the Setup Tab).

Code

Lookup code for this Access Level

Description

Description of this Access Level

Forms

Add Forms that will be available to this Access Level.
Click the checkbox to enable the following on this Form for this Access Level.


Action Buttons:

  • Add: This Button will appear on The Browse Form and open a new/blank record in an Edit Form.
  • Print: This Button will appear on The Browse Form and will open a new window displaying an html table that is Formatted, Sorted and Filtered version of the Browse Form
  • Save: Functionality of this button is to commit changes to the selected record.
  • Clone: This Button will appear on the Edit Form and will be hidden until a record has been saved at least once. Functionality of this button is to create a duplicate object with the same fields ready for editing.
  • Delete: Functionality of this button is to delete the currently opened record

Reports

Add Reports that will be available to this Access Level.

Procedures

Add Procedures that will be available to this Access Level.

Adding a User

Name

User's real name

Email

Email address

Language

Select a language with a translation in Translations.

If left blank it will just use the phrases used in nuBuilder (English).

Access Level

Select a previously defined Access Level.

Login Name

nuBuilder Login Name

Password

nuBuilder Login Password

Only used when changing passwords.

Confirm Password

Repeat nuBuilder Login Password

Creating Password Policies

Rules for enforcing Password policies can be created by making a Procedure with a Code of nuCheckPasswordPolicy

If a Procedure exists with this Code, it will be used to validate any Password Changes.

Setting a variable called $check to true will allow the changes to be saved.


Here is an Example Procedure...


  function nuCheckPasswordPolicy() {
  
     $oldpw    = '#old_password#';
     $newpw    = '#new_password#';
      
     $passwordErr = "";
   
     if ($newpw === $oldpw) {
         $passwordErr .= "The provided New Password cannot be the same as the Current Password!
"; } if (strlen($newpw) < 8) { $passwordErr .= "Your Password must contain at least 8 Characters!
"; } if (!preg_match("#[0-9]+#",$newpw)) { $passwordErr .= "Your Password must contain at least 1 Number!
"; } if (!preg_match("#[A-Z]+#",$newpw)) { $passwordErr .= "Your Password must contain at least 1 Capital Letter!
"; } if(!preg_match("#[a-z]+#",$newpw)) { $passwordErr .= "Your Password must contain at least 1 Lowercase Letter!
"; } if(!preg_match('/[\'\/~`\!@#\$%\^&\*\(\)_\-\+=\{\}\[\]\|;:"\<\>,\.\?\\\]/', $newpw)) { $passwordErr .= "Your Password must contain at least 1 Special Character!
"; } if (strlen($passwordErr) > 0) { nuDisplayError ($passwordErr) ; return false; } else { return true; } } $check = nuCheckPasswordPolicy();