summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-07-24 13:11:35 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-09-11 17:55:17 +0200
commit72869e26877771900ebee7ea70a616715373a0aa (patch)
tree0f5b363fbece4d8a9d582415c987958eb2a79653 /install
parentcba9dcfe0d214718bfa81c347a7798603875ff69 (diff)
downloadfreeipa-72869e26877771900ebee7ea70a616715373a0aa.tar.gz
freeipa-72869e26877771900ebee7ea70a616715373a0aa.tar.xz
freeipa-72869e26877771900ebee7ea70a616715373a0aa.zip
webui: add measurement unit to otp token time fields
https://fedorahosted.org/freeipa/ticket/4402 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install')
-rw-r--r--install/ui/src/freeipa/otptoken.js15
1 files 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: [
{