mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUAC-1176: Only clear entered passwords - do not delete the fields entirely.
This commit is contained in:
@@ -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