mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-05 21:05:46 +01:00
pass code on all functions for security
This commit is contained in:
@@ -2359,7 +2359,9 @@ class BackupManager:
|
|||||||
payload = {
|
payload = {
|
||||||
'subscription_id': subscription_id,
|
'subscription_id': subscription_id,
|
||||||
'key': ProcessUtilities.outputExecutioner(f'cat /root/.ssh/cyberpanel.pub'),
|
'key': ProcessUtilities.outputExecutioner(f'cat /root/.ssh/cyberpanel.pub'),
|
||||||
'serverIP': ACLManager.fetchIP()
|
'serverIP': ACLManager.fetchIP(),
|
||||||
|
'email': data['email'],
|
||||||
|
'code': data['code']
|
||||||
}
|
}
|
||||||
|
|
||||||
headers = {'Content-Type': 'application/json'}
|
headers = {'Content-Type': 'application/json'}
|
||||||
|
|||||||
@@ -73,7 +73,8 @@ app.controller('backupPlanNowOneClick', function($scope, $http) {
|
|||||||
if (response.data.status == 1) {
|
if (response.data.status == 1) {
|
||||||
// After successful verification, fetch Stripe subscriptions
|
// After successful verification, fetch Stripe subscriptions
|
||||||
$http.post('https://platform.cyberpersons.com/Billing/FetchStripeSubscriptionsByEmail', {
|
$http.post('https://platform.cyberpersons.com/Billing/FetchStripeSubscriptionsByEmail', {
|
||||||
email: $scope.verificationEmail
|
email: $scope.verificationEmail,
|
||||||
|
code: $scope.verificationCode
|
||||||
}, config).then(function(subResponse) {
|
}, config).then(function(subResponse) {
|
||||||
$scope.cyberpanelLoading = true;
|
$scope.cyberpanelLoading = true;
|
||||||
if (subResponse.data.status == 1) {
|
if (subResponse.data.status == 1) {
|
||||||
@@ -271,7 +272,9 @@ app.controller('backupPlanNowOneClick', function($scope, $http) {
|
|||||||
customer_id: subscription.customer,
|
customer_id: subscription.customer,
|
||||||
plan_name: subscription.plan_name,
|
plan_name: subscription.plan_name,
|
||||||
amount: subscription.amount,
|
amount: subscription.amount,
|
||||||
interval: subscription.interval
|
interval: subscription.interval,
|
||||||
|
email: $scope.verificationEmail,
|
||||||
|
code: $scope.verificationCode
|
||||||
};
|
};
|
||||||
|
|
||||||
$http.post('/backup/ReconfigureSubscription', data, config).then(function(response) {
|
$http.post('/backup/ReconfigureSubscription', data, config).then(function(response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user