mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-06 20:30:45 +01:00
Merge pull request #327 from istiak101/patch-1
generate 16 digit strong password
This commit is contained in:
@@ -106,7 +106,7 @@ app.controller('createDatabase', function ($scope, $http) {
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
$scope.generatedPasswordView = false;
|
||||
$scope.dbPassword = randomPassword(12);
|
||||
$scope.dbPassword = randomPassword(16);
|
||||
};
|
||||
|
||||
$scope.usePassword = function () {
|
||||
@@ -447,7 +447,7 @@ app.controller('listDBs', function ($scope, $http) {
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
$scope.generatedPasswordView = false;
|
||||
$scope.dbPassword = randomPassword(12);
|
||||
$scope.dbPassword = randomPassword(16);
|
||||
};
|
||||
|
||||
$scope.usePassword = function () {
|
||||
@@ -493,4 +493,4 @@ app.controller('phpMyAdmin', function ($scope, $http, $window) {
|
||||
}
|
||||
setupPHPMYAdminSession();
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -113,7 +113,7 @@ app.controller('createFTPAccount', function ($scope, $http) {
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
$scope.generatedPasswordView = false;
|
||||
$scope.ftpPassword = randomPassword(12);
|
||||
$scope.ftpPassword = randomPassword(16);
|
||||
};
|
||||
|
||||
$scope.usePassword = function () {
|
||||
@@ -451,11 +451,11 @@ app.controller('listFTPAccounts', function ($scope, $http) {
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
$scope.generatedPasswordView = false;
|
||||
$scope.ftpPassword = randomPassword(12);
|
||||
$scope.ftpPassword = randomPassword(16);
|
||||
};
|
||||
|
||||
$scope.usePassword = function () {
|
||||
$scope.generatedPasswordView = true;
|
||||
};
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -110,7 +110,7 @@ app.controller('createEmailAccount', function ($scope, $http) {
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
$scope.generatedPasswordView = false;
|
||||
$scope.emailPassword = randomPassword(12);
|
||||
$scope.emailPassword = randomPassword(16);
|
||||
};
|
||||
|
||||
$scope.usePassword = function () {
|
||||
@@ -465,7 +465,7 @@ app.controller('changeEmailPassword', function ($scope, $http) {
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
$scope.generatedPasswordView = false;
|
||||
$scope.emailPassword = randomPassword(12);
|
||||
$scope.emailPassword = randomPassword(16);
|
||||
};
|
||||
|
||||
$scope.usePassword = function () {
|
||||
@@ -1291,4 +1291,4 @@ app.controller('listEmails', function ($scope, $http) {
|
||||
});
|
||||
|
||||
|
||||
/* Java script code for List Emails Ends here */
|
||||
/* Java script code for List Emails Ends here */
|
||||
|
||||
@@ -113,7 +113,7 @@ app.controller('createUserCtr', function ($scope, $http) {
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
$scope.generatedPasswordView = false;
|
||||
$scope.password = randomPassword(12);
|
||||
$scope.password = randomPassword(16);
|
||||
};
|
||||
|
||||
$scope.usePassword = function () {
|
||||
@@ -342,7 +342,7 @@ app.controller('modifyUser', function ($scope, $http) {
|
||||
|
||||
$scope.generatePassword = function () {
|
||||
$scope.generatedPasswordView = false;
|
||||
$scope.password = randomPassword(12);
|
||||
$scope.password = randomPassword(16);
|
||||
};
|
||||
|
||||
$scope.usePassword = function () {
|
||||
@@ -1744,4 +1744,4 @@ app.controller('listTableUsers', function ($scope, $http) {
|
||||
});
|
||||
|
||||
|
||||
/* Java script code to list table users */
|
||||
/* Java script code to list table users */
|
||||
|
||||
Reference in New Issue
Block a user