From 2611eb4cc244b31627a08abc848a29929bad3f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel=20Gonz=C3=A1lez?= Date: Tue, 3 Jul 2018 13:07:55 +0200 Subject: [PATCH] Clear password when editing --- public/controllers/settings.js | 3 +++ 1 file changed, 3 insertions(+) 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;