lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 292 forks source link

Generate clears form fields #271

Open Fatal-Halt opened 7 years ago

Fatal-Halt commented 7 years ago

When I run 'lpass generate 20', lastpass seems to properly generate a new password and update the ID, but it also seems to remove any custom form fields that I have added.

Am I misunderstanding the use of generate? See below for sanitized example / version.

user@server:~$ lpass --version LastPass CLI v1.1.2

user@server:~$ lpass show xxxxxxxxxxxxxxxxx Account Name [id: xxxxxxxxxxxxxxxxx] Username: username Password: password customfield: customFieldValue

user@server:~$ lpass generate xxxxxxxxxxxxxxxxx 20 newPassword

user@server:~$ lpass show xxxxxxxxxxxxxxxxx Account Name [id: xxxxxxxxxxxxxxxxx] Username: username Password: newPassword

Fatal-Halt commented 7 years ago

I figured I could at least add a workaround by adding the field/value I want back to the ID, but it appears that any working with fields isn't supported yet. Is there any timeline on this functionality?