Password Generator

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Password Generator are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you are having trouble downloading with the Google Chrome browser, try another browser Caution



Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 13.0
TNG 12.0



Password Generator
Summary Adds a 'Generate' button next to the password field on multiple pages.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated {{{mod_last_update}}}
Download link v13.0.0.3
TNG 13.0

v12.3.0.3
TNG 12.0

v8.1.0.zip
TNG 8.0

Download stats {{{download_stats}}}
Author(s) Bart 'Roebie' Degryse and Michel Kirsch
Homepage Password Generator
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod v 3 for TNG v12 & 13
8.1.0 for TNG v8
Min TNG V 8.0.0
Max TNG V 13.0.0
Files modified
admin_newuser.php
(new) js/password_generator.js
Related Mods
Notes


Purpose of the mod

Adds a 'Generate' button next to the password field on the 'Add New User' page.

The TNG v8 version of the mod applies to TNG 8.0.2 but should work with 8.0.0 and 8.0.1 too (although I didn't test it).

The TNG v12 version of the mod applies to TNG 12.3 but probably works with TNG v12.x and above. It can probably be run with TNG v11x.


Developer

This mod was developed by Bart 'Roebie' Degryse. The maintenance and adaptations are handled by [Michel Kirsch] from Charleroi - Hainaut - Belgium


Requirements

  • A working TNG installation.
  • A backup of your TNG admin_newuser.php file.


Automated Installation

  1. Download the appropriate zip file as shown in the summary in the upper right corner of the page.
  2. Extract the config file and the javascript file from the downloaded zip file into your mods folder
  3. Follow the normal automated installation for Mod Manager.


In the event of a problem

  • Try using the Mod Manager Remove capability
  • Or copy your backup of the admin_newuser.php file to your TNG directory


Revision History

Version Date Contents
v12.3.0.3 - v13.0.0.3 28 sep 2020 Add generate button on multiple forms where it is necessary.
v12.3.0.2 15 sep 2020 Updated for TNG V12
Added the EDIT option.
v9.0.0.0 6 February 2012 This version is LOST. If someone have the zip file of this version, he can send it to me...(see mail above)
v8.1.2 18 November 2010 Initial config file release


Visualization of this mod

The following images show the 'Add New User' page without and with the mod installed.

Without the mod
With the mod installed
Without the mod With the mod installed


Password specifics since TNG v9

The generated password will consist of lowercase and uppercase characters and numbers and will be 8 long. You can however change this by using the EDIT button in the Mod Manager.

The EDIT button


Password specifics TNG v8

The generated password will consist of lowercase and uppercase characters and numbers and will be 8 long. You can however change this by editing the config file.

The end of line 25 looks like this

...password.value = getPassword();">

This getPassword() function takes 10 optional parameters however.

Parameter Description Default value
(1) length The length of the generated password 8
(2) extraChars Here you can provide a set of characters to use in generating the password. They can always be used regardless of the values of the following parameters. (empty)
(3) firstNumber The first character of the password can be a number true
(4) firstLower The first character of the password can be a lowercase character true
(5) firstUpper The first character of the password can be a uppercase character true
(6) firstOther The first character of the password can be a special character false
(7) latterNumber From the second character of the password on a number can be used true
(8) latterLower From the second character of the password on a lowercase character can be used true
(9) latterUpper From the second character of the password on a uppercase character can be used true
(10) latterOther From the second character of the password on a special character can be used false

The defined sets of characters are:

character set characters
number 0123456789
lowercase abcdefghijklmnopqrstuvwxyz
uppercase ABCDEFGHIJKLMNOPQRSTUVWXYZ
other/special `~! @#$%^&*()-_=+[{]}\\|;:'\",<.>/?

Some examples:

  • A five character password starting with an uppercase and having all characters but numbers
    ...password.value = getPassword(5,'',false,false,true,false,false,true,true,true);">
  • A five character password starting with an uppercase and having all characters but specials
    ...password.value = getPassword(5,'',false,false,true);">
    In this example you can see that you can omit variables for which you want to use the default value. You only have to provide values for all parameters upto the last non-default one (in this case the fifth parameter)
  • A six character password consisting of numbers and the uppercase characters A to E
    ...password.value = getPassword(6,'ABCDE',true,false,false,false,true);">
    Note that ABCDE can appear in all positions.


Finally note that the default parameter values don't produce a strong password but one that can be remembered by most people (possibly with some excercise). To have a strong password you should use at least

...password.value = getPassword(14,'',true,true,true,true,true,true,true,true);">


Side effects

As with most source code modifications, these changes will likely be overwritten during your next TNG revision upgrade and will need to be re-implemented. (Using the Mod Manager greatly simplifies this process).

Until now I haven't heard of any conflicts with other mods.


Sites using this mod

Well, of course, my own. Since it's not public it's not really worth adding a link here though.
The mod has been downloaded 34 times between the initial release and Feb. 6, 2012. So I guess it can be found 'in the wild'. Please add public TNG sites that you have found that utilize this modification!

URL User Note Mod-Version TNG-Version User-language
Genealogy of a Dutch East-Indies Family Rob Severijns Private v13.0.0.3 v13.0.3 NL, EN
MOTYER Family Genealogy John Mark Motyer Public Site see here see here EN, DE, RU
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN, DE, FR, ES, NL