-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error while calling NewClient #52
Comments
When the user creates an account via https://lastpass.com/create-account.php but has never logged in with the LastPass Chrome extension, an empty privatekeyenc will be returned even if includeprivatekeyenc is set. Before this commit, NewClient() failed with the following error: "input is only 0 bytes; expected at least 16 bytes" From now on, if privatekeyenc is empty in the HTTP response, session.privateKey remains nil. This should be okay because when trying to share a password with an account that never logged in, we get the following error message in Chrome: "Something went wrong sharing with these users: The user must login to LastPass at least once to permit sharing." See #52 and https://github.com/lastpass/lastpass-cli/blob/8767b5e53192ad4e72d1352db4aa9218e928cbe1/cipher.c#L400-L401
Hey @kaplanelad, Thanks for reporting this issue. I could reproduce this issue by creating an account via https://lastpass.com/create-account.php and logging in with this Go library without previously logging in via the Chrome extension. So, my 1st question is: I just pushed a commit to Thanks! |
Thanks @ansd, it woks now |
Thank you @kaplanelad for testing and confirming. |
Hey,
I'm getting an error when trying to create
NewClient
function. see example:The error is:
input is only 0 bytes; expected at least 16 bytes
It looks like the field
privatekeyenc
returns empty from API, and the functiondecryptPrivateKey
based on this field returns an error.The text was updated successfully, but these errors were encountered: