From 72869e26877771900ebee7ea70a616715373a0aa Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 24 Jul 2014 13:11:35 +0200 Subject: webui: add measurement unit to otp token time fields https://fedorahosted.org/freeipa/ticket/4402 Reviewed-By: Endi Sukma Dewata --- install/ui/src/freeipa/otptoken.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/install/ui/src/freeipa/otptoken.js b/install/ui/src/freeipa/otptoken.js index 56c7684a0..c9570a697 100644 --- a/install/ui/src/freeipa/otptoken.js +++ b/install/ui/src/freeipa/otptoken.js @@ -198,8 +198,14 @@ return { 'ipatokenserial', 'ipatokenotpalgorithm', 'ipatokenotpdigits', - 'ipatokentotpclockoffset', - 'ipatokentotptimestep', + { + name: 'ipatokentotpclockoffset', + measurement_unit: 'seconds' + }, + { + name: 'ipatokentotptimestep', + measurement_unit: 'seconds' + }, 'ipatokenhotpcounter' ] } @@ -262,7 +268,10 @@ return { default_value: '6', options: ['6', '8'] }, - 'ipatokentotptimestep' + { + name: 'ipatokentotptimestep', + measurement_unit: 'seconds' + } ], selfservice_fields: [ { -- cgit