uses consistent terminology

This commit is contained in:
Alex Booker 2015-08-16 09:06:16 +01:00
parent 28803ae0b9
commit 08a41d6623

View File

@ -169,7 +169,7 @@
<input type="checkbox" id="include-lowercase-chars-checkbox" checked> Lower-case <input type="checkbox" id="include-lowercase-chars-checkbox" checked> Lower-case
</label> </label>
<label> <label>
<input type="checkbox" id="include-digits-checkbox" checked> Digits <input type="checkbox" id="include-numbers-checkbox" checked> Numbers
</label> </label>
<label> <label>
<input type="checkbox" id="include-special-chars-checkbox"> Special <input type="checkbox" id="include-special-chars-checkbox"> Special
@ -204,7 +204,7 @@
var uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXTZ"; var uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXTZ";
var lowercase = "abcdefghiklmnopqrstuvwxyz"; var lowercase = "abcdefghiklmnopqrstuvwxyz";
var numbers = "0123456789"; var numbers = "0123456789";
var punct = ".,-/#!$%^&*;:{}=-_`~()]"; var special = ".,-/#!$%^&*;:{}=-_`~()]";
var candidates = ''; var candidates = '';
if (options.includeUppercaseChars) { if (options.includeUppercaseChars) {
candidates += uppercase; candidates += uppercase;
@ -215,8 +215,8 @@
if (options.includeNumbers) { if (options.includeNumbers) {
candidates += numbers; candidates += numbers;
} }
if (options.includePunctuationChars) { if (options.includeSpecialChars) {
candidates += punct; candidates += special;
} }
var password = ""; var password = "";
for (var i = 0; i < options.passwordLength; i++) { for (var i = 0; i < options.passwordLength; i++) {
@ -236,8 +236,8 @@
passwordLength: $("#password-length").val(), passwordLength: $("#password-length").val(),
includeUppercaseChars: $("#include-uppercase-chars-checkbox").is(":checked"), includeUppercaseChars: $("#include-uppercase-chars-checkbox").is(":checked"),
includeLowercaseChars: $("#include-lowercase-chars-checkbox").is(":checked"), includeLowercaseChars: $("#include-lowercase-chars-checkbox").is(":checked"),
includeNumbers: $("#include-digits-checkbox").is(":checked"), includeNumbers: $("#include-numbers-checkbox").is(":checked"),
includePunctuationChars: $("#include-special-chars-checkbox").is(":checked"), includeSpecialChars: $("#include-special-chars-checkbox").is(":checked"),
} }
}; };
function outputGeneratedPassword() { function outputGeneratedPassword() {