KEYCLOAK-13635: Can't make mapper with certain chars

This commit is contained in:
Stan Silvert 2020-03-31 17:41:47 -04:00 committed by Stian Thorgersen
parent 21597b1ff2
commit 020ffd37ee
2 changed files with 2 additions and 2 deletions

View file

@ -2387,7 +2387,7 @@ module.directive('kcEnter', function() {
// Don't allow URI reserved characters
module.directive('kcNoReservedChars', function (Notifications, $translate) {
return function($scope, element) {
element.bind("keydown keypress", function(event) {
element.bind("keypress", function(event) {
var keyPressed = String.fromCharCode(event.which || event.keyCode || 0);
// ] and ' can not be used inside a character set on POSIX and GNU

View file

@ -3,7 +3,7 @@
<label class="col-md-2 control-label">{{:: option.label | translate}}</label>
<div class="col-md-6" data-ng-if="option.type == 'String'">
<input kc-no-reserved-chars class="form-control" type="text" data-ng-model="config[ option.name ]" >
<input class="form-control" type="text" data-ng-model="config[ option.name ]" >
</div>
<div class="col-md-6" data-ng-if="option.type == 'Password'">
<input class="form-control" type="password" data-ng-model="config[ option.name ]" >