minor changes to backup manager

This commit is contained in:
usmannasir
2019-03-13 18:22:12 +05:00
parent 29b6d4d3b4
commit e40c7d8912
11 changed files with 133 additions and 40 deletions

View File

@@ -22,6 +22,16 @@ function getCookie(name) {
return cookieValue;
}
function randomPassword(length) {
var chars = "abcdefghijklmnopqrstuvwxyz!@#$%^*()-+<>ABCDEFGHIJKLMNOP1234567890";
var pass = "";
for (var x = 0; x < length; x++) {
var i = Math.floor(Math.random() * chars.length);
pass += chars.charAt(i);
}
return pass;
}
/* Utilities ends here */