Use a better UI control for entering token lengths
We are limited by the liboath API to tokens of between 6 and 8 characters in length (excluding a possible checksum digit).
Such a limited range of possible (integer) values is more appropriately addressed by using a SpinBox
instead of a TextField
.