KEYCLOAK-18880 change "look ahead window" to "look around window" (#9341)

Closes #9340
This commit is contained in:
Yoshiyuki Tabata 2022-01-06 04:04:50 +09:00 committed by GitHub
parent 981cda5bfd
commit baad104673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -1332,7 +1332,9 @@ otp-hash-algorithm.tooltip=What hashing algorithm should be used to generate the
number-of-digits=Number of Digits
otp.number-of-digits.tooltip=How many digits should the OTP have?
look-ahead-window=Look Ahead Window
otp.look-ahead-window.tooltip=How far ahead should the server look just in case the token generator and server are out of time sync or counter sync?
otp.look-ahead-window.tooltip=How far ahead should the server look just in case the token generator and server are out of counter sync?
look-around-window=Look Around Window
otp.look-around-window.tooltip=How far should the server look around just in case the token generator and server are out of time sync?
initial-counter=Initial Counter
otp.initial-counter.tooltip=What should the initial counter value be?
otp-token-period=OTP Token Period

View file

@ -41,14 +41,22 @@
<kc-tooltip>{{:: 'otp.number-of-digits.tooltip' | translate}}</kc-tooltip>
</div>
<div class="form-group">
<div class="form-group" data-ng-if="realm.otpPolicyType == 'hotp'">
<label class="col-md-2 control-label" for="lookAhead">{{:: 'look-ahead-window' | translate}}</label>
<div class="col-md-6">
<input class="form-control" type="number" required min="0" max="120" id="lookAhead" name="lookAhead" data-ng-model="realm.otpPolicyLookAheadWindow" autofocus>
<input class="form-control" type="number" data-ng-required="realm.otpPolicyType == 'hotp'" min="0" max="120" id="lookAhead" name="lookAhead" data-ng-model="realm.otpPolicyLookAheadWindow">
</div>
<kc-tooltip>{{:: 'otp.look-ahead-window.tooltip' | translate}}</kc-tooltip>
</div>
<div class="form-group" data-ng-if="realm.otpPolicyType == 'totp'">
<label class="col-md-2 control-label" for="lookAhead">{{:: 'look-around-window' | translate}}</label>
<div class="col-md-6">
<input class="form-control" type="number" data-ng-required="realm.otpPolicyType == 'totp'" min="0" max="120" id="lookAround" name="lookAround" data-ng-model="realm.otpPolicyLookAheadWindow">
</div>
<kc-tooltip>{{:: 'otp.look-around-window.tooltip' | translate}}</kc-tooltip>
</div>
<div class="form-group" data-ng-if="realm.otpPolicyType == 'hotp'">
<label class="col-md-2 control-label" for="counter">{{:: 'initial-counter' | translate}}</label>
<div class="col-md-6">