Input validation in OTP Policy page

This commit is contained in:
Bruno Oliveira 2015-11-06 11:52:21 -02:00
parent 15828e899b
commit 8db6972441

View file

@ -46,7 +46,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label" for="lookAhead">Look ahead window</label> <label class="col-md-2 control-label" for="lookAhead">Look ahead window</label>
<div class="col-md-6"> <div class="col-md-6">
<input class="form-control" type="text" id="lookAhead" name="lookAhead" data-ng-model="realm.otpPolicyLookAheadWindow" autofocus> <input class="form-control" type="number" required min="1" max="120" id="lookAhead" name="lookAhead" data-ng-model="realm.otpPolicyLookAheadWindow" autofocus>
</div> </div>
<kc-tooltip>How far ahead should the server look just in case the token generator and server are out of time sync or counter sync?</kc-tooltip> <kc-tooltip>How far ahead should the server look just in case the token generator and server are out of time sync or counter sync?</kc-tooltip>
</div> </div>
@ -62,7 +62,7 @@
<div class="form-group" data-ng-show="realm.otpPolicyType == 'totp'"> <div class="form-group" data-ng-show="realm.otpPolicyType == 'totp'">
<label class="col-md-2 control-label" for="counter">OTP Token Period</label> <label class="col-md-2 control-label" for="counter">OTP Token Period</label>
<div class="col-md-6"> <div class="col-md-6">
<input class="form-control" type="text" id="period" name="period" data-ng-model="realm.otpPolicyPeriod"> <input class="form-control" type="number" required min="1" max="120" id="period" name="period" data-ng-model="realm.otpPolicyPeriod">
</div> </div>
<kc-tooltip>How many seconds should an OTP token be valid? Defaults to 30 seconds.</kc-tooltip> <kc-tooltip>How many seconds should an OTP token be valid? Defaults to 30 seconds.</kc-tooltip>
</div> </div>
@ -79,4 +79,4 @@
</div> </div>
<kc-menu></kc-menu> <kc-menu></kc-menu>