mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-17 18:51:04 +01:00
random password generator
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user