enpass-cli
enpass-cli copied to clipboard
Support One-time code type
When type is set to -type="One-time Code", nothing is returned.
This should have 2 use cases though:
- return the secret behind the OTP
- return the OTP code and probably skip the auth for this
example:
$ enp -type="One-time Code" show <filter>
INFO[0003] > title: <filter-match> login: XXX cat.: XXX OTP: otpauth://totp/XXX?secret=XXX&issuer=XXX
INFO[0003] > title: <filter-match> login: XXX cat.: XXX OTP: XXX
$ enp otp <filter>
INFO[0003] > title: <filter-match> OTP: 123456
INFO[0003] > title: <filter-match> OTP: 234567
$ enp otp -title <title> # Exact single match otherwise error
123456
@anton-stamenov-SWO Can you perhaps give me an example of what is returned in that column in the enpass database? What's the column name?
I don't know how to check the database. I'm assuming the DB column name is the same as the field name in the UI, which currently shows 'One-Time Password'. I would like to be able to see the value of this field and also when in edit mode, I would like to see this value as well.