GUACAMOLE-197: Fix display issues and add translation strings for the RADIUS response field.

This commit is contained in:
Nick Couchman
2017-02-07 21:51:04 -05:00
committed by Nick Couchman
parent 4dd61403c8
commit 86d9a8fb88
4 changed files with 8 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ angular.module('guacRadius').config(['formServiceProvider',
formServiceProvider.registerFieldType('GUAC_RADIUS_STATE', {
module : 'guacRadius',
controller : 'radiusStateController',
template : '<input type=hidden ng-model="model" />'
template : '<input class="ng-hide" type=hidden ng-model="model" />'
});
}]);

View File

@@ -25,10 +25,7 @@
angular.module('guacRadius').controller('radiusResponseController', ['$scope', '$element',
function radiusResponseController($scope, $element) {
// Find the area to display the challenge message
var radiusChallenge = $element.find(document.querySelector('#radius-challenge-text'));
// Populate the reply message field
radiusChallenge.html($scope.field.replyMsg);
$scope.radiusPlaceholder = $scope.field.replyMsg;
}]);

View File

@@ -1,5 +1 @@
<div id="radius-challenge-text" />
<div class="password-field">
<input type="{{passwordInputType}}" ng-model="model" ng-trim="false" autocorrect="off" autocapitalize="off"/>
<div class="icon toggle-password" ng-click="togglePassword()" title="{{getTogglePasswordHelpText() | translate}}"></div>
</div>
<input type="password" ng-model="model" ng-trim="false" autocorrect="off" autocapitalize="off" placeholder="{{radiusPlaceholder}}" />

View File

@@ -5,10 +5,11 @@
},
"LOGIN" : {
"FIELD_HEADER_RADIUS_RESPONSE" : "",
"INFO_RADIUS_RESPONSE_INCORRECT" : "RADIUS response incorrect.",
"INFO_RADIUS_AUTH_REQUIRED" : "Please authenticate with RADIUS to continue.",
"INFO_RADIUS_ADDL_REQUIRED" : "Additional credentials required."
"FIELD_HEADER_GUAC_RADIUS_CHALLENGE_RESPONSE" : "",
"FIELD_HEADER_GUAC_RADIUS_STATE" : "",
"INFO_RADIUS_RESPONSE_INCORRECT" : "RADIUS response incorrect.",
"INFO_RADIUS_AUTH_REQUIRED" : "Please authenticate with RADIUS to continue.",
"INFO_RADIUS_ADDL_REQUIRED" : "Please supply additional credentials"
}
}