GUACAMOLE-197: Merge support for RADIUS authentication.

This commit is contained in:
Michael Jumper
2018-01-30 15:43:32 -08:00
30 changed files with 3080 additions and 4 deletions

View File

@@ -168,12 +168,12 @@ angular.module('login').directive('guacLogin', [function guacLogin() {
else
$scope.loginError = error.translatableMessage;
// Clear all visible password fields
// Clear all remaining fields that are not username fields
angular.forEach($scope.remainingFields, function clearEnteredValueIfPassword(field) {
// Remove entered value only if field is a password field
if (field.type === Field.Type.PASSWORD && field.name in $scope.enteredValues)
$scope.enteredValues[field.name] = '';
// If field is not username field, delete it.
if (field.type !== Field.Type.USERNAME && field.name in $scope.enteredValues)
delete $scope.enteredValues[field.name];
});
}