|Summary||Adds a 'Generate' button next to the password field on the 'Add New User' page.|
|Validation||The mod is XHTML compliant.|
See download statistics
|Author(s)||Bart 'Roebie' Degryse|
|Mod Support||TNG Community Forums|
|Latest Mod||22.214.171.124 for TNG v9|
8.1.0 for TNG v8
|Min TNG V||8.0.0|
|Max TNG V||10.0.0|
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 v9 version of the mod applies to TNG 126.96.36.199 but probably works with TNG v8 too (although I didn't test it).
This mod was developed by Bart 'Roebie' Degryse
- A working TNG installation.
- A backup of your TNG admin_newuser.php file.
- An installed current version of the Mod Manager (is included in TNG v8 and v9)
- Download the appropriate zip file as shown in the summary in the upper right corner of the page. NOTE that I host these zip files on my own server. That way I can count the number of downloads for each mod I made and estimate the relevance of such mod.
- Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.
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
|v188.8.131.52||6 February 2012|| Updated for TNG V9|
Added the EDIT option.
|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.
Password specifics 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.
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.
|(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:
- 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);">
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!
|MOTYER Family Genealogy||John Mark Motyer||Public Site||see here||see here||EN, DE, RU|