Make user repeat the backup encryption password

This commit is contained in:
Johannes Zellner
2020-11-14 11:01:46 +01:00
parent 5ee64c827a
commit 5d2f3d51bf
3 changed files with 15 additions and 4 deletions

View File

@@ -5,6 +5,8 @@
angular.module('Application').controller('BackupsController', ['$scope', '$location', '$rootScope', '$timeout', 'Client', function ($scope, $location, $rootScope, $timeout, Client) {
Client.onReady(function () { if (!Client.getUserInfo().isAtLeastAdmin) $location.path('/'); });
$scope.SECRET_PLACEHOLDER = SECRET_PLACEHOLDER;
$scope.config = Client.getConfig();
$scope.user = Client.getUserInfo();
$scope.memory = null; // { memory, swap }
@@ -410,6 +412,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
externalDisk: false,
format: 'tgz',
password: '',
passwordRepeat: '',
advancedVisible: false,
memoryTicks: [],
@@ -465,6 +468,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
}
$scope.configureBackup.endpoint = $scope.backupConfig.endpoint;
$scope.configureBackup.password = $scope.backupConfig.password;
$scope.configureBackup.passwordRepeat = '';
$scope.configureBackup.backupFolder = $scope.backupConfig.backupFolder;
$scope.configureBackup.mountPoint = $scope.backupConfig.mountPoint;
$scope.configureBackup.format = $scope.backupConfig.format;