Difference between revisions of "Password Generator"
Line 2: | Line 2: | ||
| mod_name = Password Generator | | mod_name = Password Generator | ||
| mod_summary = Adds a 'Generate' button next to the password field on the 'Add New User' page. | | mod_summary = Adds a 'Generate' button next to the password field on the 'Add New User' page. | ||
+ | | mod_validation = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]] | ||
| download_link = {{Tv90}}[http://ccount.degryse-moeys.net/click.php?id=2 password_generator_v9.0.0.0.zip]<hr/> {{Tv80}}[http://ccount.degryse-moeys.net/click.php?id=1 password_generator_v8.1.0.zip] | | download_link = {{Tv90}}[http://ccount.degryse-moeys.net/click.php?id=2 password_generator_v9.0.0.0.zip]<hr/> {{Tv80}}[http://ccount.degryse-moeys.net/click.php?id=1 password_generator_v8.1.0.zip] | ||
| mod_author = Bart 'Roebie' Degryse | | mod_author = Bart 'Roebie' Degryse | ||
| mod_url = [[Password Generator]] | | mod_url = [[Password Generator]] | ||
| mod_support = [http://www.tngforum.us/ TNG Forums] | | mod_support = [http://www.tngforum.us/ TNG Forums] | ||
+ | | mod_contact = | ||
| mod_version = 9.0.0.0 for TNG v9<br />8.1.0 for TNG v8 | | mod_version = 9.0.0.0 for TNG v9<br />8.1.0 for TNG v8 | ||
| min_TNG_ver = 8.0.0 | | min_TNG_ver = 8.0.0 |
Revision as of 09:20, 6 February 2012
Password Generator | |||
---|---|---|---|
Summary | Adds a 'Generate' button next to the password field on the 'Add New User' page. | ||
Validation | The mod is XHTML compliant. | ||
Mod Updated | {{{mod_last_update}}} | ||
Download link |
| ||
Download stats | {{{download_stats}}} | ||
Author(s) | Bart 'Roebie' Degryse | ||
Homepage | Password Generator | ||
Mod Support | TNG Forums | ||
Contact Developer | |||
Latest Mod | 9.0.0.0 for TNG v9 8.1.0 for TNG v8 | ||
Min TNG V | 8.0.0 | ||
Max TNG V | 9.0.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 v9 version of the mod applies to TNG 9.0.0.0 but probably works with TNG v8 too (although I didn't test it).
Developer
This mod was developed by Bart 'Roebie' Degryse
Requirements
- 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)
Automated Installation
- Download the appropriate zip file as shown in the summary in the upper right corner of the page
- Extract the config file and the javascript file from the downloaded zip file into the mods folder
- 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
Revision History
Version | Date | Contents |
---|---|---|
v9.0.0.0 | 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.
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!