Merge pull request #2021 from cainj13/providerConfigPassword
Add 'password' configuration field type for federation providers
This commit is contained in:
commit
1e16803d7b
2 changed files with 5 additions and 1 deletions
|
@ -2,9 +2,12 @@
|
|||
<div data-ng-repeat="option in properties" class="form-group" data-ng-controller="ProviderConfigCtrl">
|
||||
<label class="col-md-2 control-label">{{:: option.label | translate}}</label>
|
||||
|
||||
<div class="col-sm-6" data-ng-hide="option.type == 'boolean' || option.type == 'List' || option.type == 'Role' || option.type == 'ClientList'">
|
||||
<div class="col-sm-6" data-ng-hide="option.type == 'boolean' || option.type == 'List' || option.type == 'Role' || option.type == 'ClientList' || option.type == 'Password'">
|
||||
<input class="form-control" type="text" data-ng-model="config[ option.name ]" >
|
||||
</div>
|
||||
<div class="col-sm-6" data-ng-show="option.type == 'Password'">
|
||||
<input class="form-control" type="password" data-ng-model="config[ option.name ]" >
|
||||
</div>
|
||||
<div class="col-sm-6" data-ng-show="option.type == 'boolean'">
|
||||
<input ng-model="config[ option.name ]" value="'true'" name="option.name" id="option.name" onoffswitchstring on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/>
|
||||
</div>
|
||||
|
|
|
@ -10,6 +10,7 @@ public class ProviderConfigProperty {
|
|||
public static final String ROLE_TYPE="Role";
|
||||
public static final String LIST_TYPE="List";
|
||||
public static final String CLIENT_LIST_TYPE="ClientList";
|
||||
public static final String PASSWORD="Password";
|
||||
|
||||
protected String name;
|
||||
protected String label;
|
||||
|
|
Loading…
Reference in a new issue