Moved password generation to the client #13

Merged
bookercodes merged 18 commits from master into master 2015-08-16 09:25:11 +00:00
Showing only changes of commit 9f5fc8005d - Show all commits

View File

@@ -238,14 +238,15 @@
includeLowercaseChars: $("#include-lowercase-chars-checkbox").is(":checked"),
includeNumbers: $("#include-numbers-checkbox").is(":checked"),
includeSpecialChars: $("#include-special-chars-checkbox").is(":checked"),
}
};
};
}
function outputGeneratedPassword() {
var password;
try {
password = passwordGenerator.generatePassword(getOptions());
} catch (error) {
return $("#unsupported-browser-alert").show();
$("#unsupported-browser-alert").show();
return;
}
if (password === '') {
alert("Whops. You unselected all the options. I don't know what characters you want. Click on the button entitled \"Advanced Options\" and enable some options then try again. Nice one");
@@ -257,7 +258,7 @@
outputGeneratedPassword();
$("#generate-password-button").click(outputGeneratedPassword);
});
}());
})();
</script>
</body>