diff --git a/public/controllers/settings.js b/public/controllers/settings.js index 065dcd3ff..5dab8a353 100644 --- a/public/controllers/settings.js +++ b/public/controllers/settings.js @@ -193,6 +193,9 @@ app.controller('settingsController', function ($scope, $rootScope, $http, $route } $scope.toggleEditor = entry => { + if($scope.formUpdate && $scope.formUpdate.password) { + $scope.formUpdate.password = ''; + } for(const key in $scope.showEditForm) { if(entry && entry._id === key) continue; $scope.showEditForm[key] = false;