Merge pull request #24 from vbaranov/master

More complex password generation
This commit is contained in:
Victor 2017-11-22 20:28:21 +03:00 committed by GitHub
commit 93020d8a5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 16 deletions

View File

@ -15,13 +15,7 @@ function generateAddress(cb) {
}
function generatePassword() {
var length = 8,
charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
retVal = "";
for (var i = 0, n = charset.length; i < length; ++i) {
retVal += charset.charAt(Math.floor(Math.random() * n));
}
return retVal;
return passwordGenerator(20, false);
}
function addValidator(web3, validatorViewObj, contractAddr, abi, cb) {
console.log("***Add validator function***");

View File

@ -15,11 +15,5 @@ function generateAddress(cb) {
}
function generatePassword() {
var length = 8,
charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
retVal = "";
for (var i = 0, n = charset.length; i < length; ++i) {
retVal += charset.charAt(Math.floor(Math.random() * n));
}
return retVal;
return passwordGenerator(20, false);
}

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 233 KiB

View File

@ -12,6 +12,7 @@
<!-- <meta property="og:image" content="https://www.notarycoin.com/assets/images/share.png"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./assets/stylesheets/index.css">
<link rel="stylesheet" type="text/css" href="./assets/stylesheets/toastr.min.css">
<link rel="apple-touch-icon" href="./favicons/favicon-192x192.png">
<link rel="icon" type="image/png" sizes="192x192" href="./favicons/favicon-192x192.png">
<link rel="mask-icon" color="#6151cc" href="./favicons/safari-pinned-tab.svg">
@ -77,6 +78,6 @@
</div>
</footer>
<script src="./assets/javascripts/modules.js" type="text/javascript"></script>
<script src="./assets/javascripts/application.js?v=1.39" type="text/javascript"></script>
<script src="./assets/javascripts/application.js?v=1.40" type="text/javascript"></script>
</body>
</html>