webui: hide otp fields based on token type

- uses hide empty feature

https://fedorahosted.org/freeipa/ticket/4402

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-07-30 10:09:12 +02:00
parent 53693168fd
commit 50291e7b9a

View File

@ -202,13 +202,18 @@ return {
'ipatokenotpdigits', 'ipatokenotpdigits',
{ {
name: 'ipatokentotpclockoffset', name: 'ipatokentotpclockoffset',
measurement_unit: 'seconds' measurement_unit: 'seconds',
hidden_if_empty: true
}, },
{ {
name: 'ipatokentotptimestep', name: 'ipatokentotptimestep',
measurement_unit: 'seconds' measurement_unit: 'seconds',
hidden_if_empty: true
}, },
'ipatokenhotpcounter' {
name: 'ipatokenhotpcounter',
hidden_if_empty: true
}
] ]
} }
] ]