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

@@ -108,7 +108,6 @@ app.controller('createUserCtr', function($scope,$http) {
};
$scope.hideSomeThings = function(){
$scope.userCreated = true;
@@ -117,6 +116,19 @@ app.controller('createUserCtr', function($scope,$http) {
};
///
$scope.generatedPasswordView = true;
$scope.generatePassword = function () {
$scope.generatedPasswordView = false;
$scope.password = randomPassword(12);
};
$scope.usePassword = function () {
$scope.generatedPasswordView = true;
};
});
/* Java script code to create account ends here */
@@ -333,7 +345,6 @@ app.controller('modifyUser', function($scope,$http) {
};
$scope.showLimitsBox = function () {
if ($scope.accountType == "Normal User"){
@@ -353,6 +364,19 @@ app.controller('modifyUser', function($scope,$http) {
};
///
$scope.generatedPasswordView = true;
$scope.generatePassword = function () {
$scope.generatedPasswordView = false;
$scope.password = randomPassword(12);
};
$scope.usePassword = function () {
$scope.generatedPasswordView = true;
};
});
/* Java script code to modify user account ends here */