mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-197: Revert some unnecessary code changes.
This commit is contained in:
@@ -172,11 +172,11 @@ 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)
|
||||
if (field.type === Field.Type.PASSWORD && field.name in $scope.enteredValues)
|
||||
$scope.enteredValues[field.name] = '';
|
||||
|
||||
// If field is not username field and not password field, delete it.
|
||||
else if (field.type !== Field.Type.USERNAME)
|
||||
else if (field.type !== Field.Type.USERNAME && field.name in $scope.enteredValues)
|
||||
delete $scope.enteredValues[field.name];
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user