GUAC-1176: Only clear entered passwords - do not delete the fields entirely.

This commit is contained in:
Michael Jumper
2015-06-03 16:32:13 -07:00
parent 904e54090f
commit 91fb8e3c88

View File

@@ -166,8 +166,8 @@ angular.module('login').directive('guacLogin', [function guacLogin() {
angular.forEach($scope.remainingFields, function clearEnteredValueIfPassword(field) {
// Remove entered value only if field is a password field
if (field.type === Field.Type.PASSWORD)
delete $scope.enteredValues[field.name];
if (field.type === Field.Type.PASSWORD && field.name in $scope.enteredValues)
$scope.enteredValues[field.name] = '';
});
}