random password generator

This commit is contained in:
usmannasir
2019-03-12 14:47:58 +05:00
parent 6f2d6d8673
commit 29b6d4d3b4
16 changed files with 446 additions and 225 deletions

View File

@@ -11,13 +11,13 @@ app.controller('createDatabase', function($scope,$http) {
$scope.databaseCreationFailed = true;
$scope.databaseCreated = true;
$scope.couldNotConnect = true;
$scope.generatedPasswordView = true;
$scope.showDetailsBoxes = function(){
$scope.dbDetails = false;
};
$scope.createDatabase = function(){
$scope.createDatabaseLoading = false;
@@ -106,6 +106,15 @@ app.controller('createDatabase', function($scope,$http) {
};
$scope.generatePassword = function () {
$scope.generatedPasswordView = false;
$scope.dbPassword = randomPassword(12);
};
$scope.usePassword = function () {
$scope.generatedPasswordView = true;
};
});
@@ -365,8 +374,6 @@ app.controller('listDBs', function($scope,$http) {
};
function populateCurrentRecords(){
$scope.recordsFetched = true;
$scope.passwordChanged = true;
@@ -442,7 +449,20 @@ app.controller('listDBs', function($scope,$http) {
}
};
}
////
$scope.generatedPasswordView = true;
$scope.generatePassword = function () {
$scope.generatedPasswordView = false;
$scope.dbPassword = randomPassword(12);
};
$scope.usePassword = function () {
$scope.generatedPasswordView = true;
};
});