This extension implements a generator for random passwords. This feature is mostly useful for user interface asking for a new password. Instead of the user having to create a password on his/her own will the generator generate a random one.
Example:
%STARTSECTION{"example"}% %JQREQUIRE{"PasswordGenerator"}% *Password*: <input type="password" size="25" id="myPassword" class="foswikiInputField" /> <a href="#" class="jqPasswordGenerator" data-target="#myPassword" data-length="20" data-capitals="true" data-numbers="true" data-special-chars="true" style="display:inline-block;margin-left:0.5em">%JQICON{"fa-random"}%</a> %ENDSECTION{"example"}%Password: The link of class
.jqPasswordGenerator
will control the target element #myPassword
. When clicking on the link will it fill in a random password
into the target element. The kind of password can be configured using a couple of parameters:
Parameter | Description | Default |
---|---|---|
data-target="<selector>" | a jQuery descriptor pointing to the input element | |
data-length="<integer>" | the length of the password being generated | 15 |
data-capitals="<boolean>" | if set to true will the password only contain uppercase letters | true |
data-numbers="<boolean>" | the password will contain numbers if set to true | true |
data-specia-chars="<boolean>" | the password will contain special characters if set to true | true |
cd /path/to/foswiki perl tools/extension_installer <NameOfExtension> installIf you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.
26 Jan 2024 | initial release |