mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-197: Fix display issues and add translation strings for the RADIUS response field.
This commit is contained in:
committed by
Nick Couchman
parent
4dd61403c8
commit
86d9a8fb88
@@ -34,7 +34,7 @@ angular.module('guacRadius').config(['formServiceProvider',
|
|||||||
formServiceProvider.registerFieldType('GUAC_RADIUS_STATE', {
|
formServiceProvider.registerFieldType('GUAC_RADIUS_STATE', {
|
||||||
module : 'guacRadius',
|
module : 'guacRadius',
|
||||||
controller : 'radiusStateController',
|
controller : 'radiusStateController',
|
||||||
template : '<input type=hidden ng-model="model" />'
|
template : '<input class="ng-hide" type=hidden ng-model="model" />'
|
||||||
});
|
});
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
@@ -25,10 +25,7 @@
|
|||||||
angular.module('guacRadius').controller('radiusResponseController', ['$scope', '$element',
|
angular.module('guacRadius').controller('radiusResponseController', ['$scope', '$element',
|
||||||
function 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
|
// Populate the reply message field
|
||||||
radiusChallenge.html($scope.field.replyMsg);
|
$scope.radiusPlaceholder = $scope.field.replyMsg;
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
@@ -1,5 +1 @@
|
|||||||
<div id="radius-challenge-text" />
|
<input type="password" ng-model="model" ng-trim="false" autocorrect="off" autocapitalize="off" placeholder="{{radiusPlaceholder}}" />
|
||||||
<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>
|
|
||||||
|
@@ -5,10 +5,11 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"LOGIN" : {
|
"LOGIN" : {
|
||||||
"FIELD_HEADER_RADIUS_RESPONSE" : "",
|
"FIELD_HEADER_GUAC_RADIUS_CHALLENGE_RESPONSE" : "",
|
||||||
"INFO_RADIUS_RESPONSE_INCORRECT" : "RADIUS response incorrect.",
|
"FIELD_HEADER_GUAC_RADIUS_STATE" : "",
|
||||||
"INFO_RADIUS_AUTH_REQUIRED" : "Please authenticate with RADIUS to continue.",
|
"INFO_RADIUS_RESPONSE_INCORRECT" : "RADIUS response incorrect.",
|
||||||
"INFO_RADIUS_ADDL_REQUIRED" : "Additional credentials required."
|
"INFO_RADIUS_AUTH_REQUIRED" : "Please authenticate with RADIUS to continue.",
|
||||||
|
"INFO_RADIUS_ADDL_REQUIRED" : "Please supply additional credentials"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user