GUAC-1176: Only clear entered passwords - do not delete the fields entirely.
This commit is contained in:
1 parent
904e54090f
commit
91fb8e3c88
1 file changed
+2
-2
@@ -166,8 +166,8 @@ angular.module('login').directive('guacLogin', [function guacLogin() {
|
|||||||
angular.forEach($scope.remainingFields, function clearEnteredValueIfPassword(field) {
|
angular.forEach($scope.remainingFields, function clearEnteredValueIfPassword(field) {
|
||||||
|
|
||||||
// Remove entered value only if field is a password field
|
// Remove entered value only if field is a password field
|
||||||
if (field.type === Field.Type.PASSWORD)
|
if (field.type === Field.Type.PASSWORD && field.name in $scope.enteredValues)
|
||||||
delete $scope.enteredValues[field.name];
|
$scope.enteredValues[field.name] = '';
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user