enpass-cli icon indicating copy to clipboard operation
enpass-cli copied to clipboard

Support One-time code type

Open anton-stamenov-SWO opened this issue 3 years ago • 2 comments

When type is set to -type="One-time Code", nothing is returned.

This should have 2 use cases though:

  1. return the secret behind the OTP
  2. 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 avatar Feb 24 '23 08:02 anton-stamenov-SWO

@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?

hazcod avatar Nov 07 '24 08:11 hazcod

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.

image

anton-stamenov-SWO avatar Nov 08 '24 11:11 anton-stamenov-SWO