SonuBardai / lockbox

L🦀CKBOX: Lockbox is a command-line tool built in rust for generating and managing passwords. It uses strong encryption algorithms to securely store your passwords, so you can be sure that your data is safe.
https://crates.io/crates/lock_box
MIT License
21 stars 11 forks source link

Add some guided steps for the user on how to use the 2FA feature #83

Open SonuBardai opened 11 months ago

SonuBardai commented 11 months ago

NOTE: Currently the 2fa feature is being built in the 2fa branch. Please pull this branch to work on this issue.

It's a bit difficult to understand what the user is supposed to do with the copied url or the QR code that's printed out to the console. There should be some explanation to guide the user to use the url and setup the 2FA.

// First time a store is setup:
$ lockbox add --service someservice --generate --file-name totp-test-store
Please enter the master password
>> 
Your totp url is: otpauth://totp/Lockbox:lockbox?secret=L2EERGG2FACHCUOQ4VXY3RRJE5ZWAPINNKV33VRKCHXXEHIVILMA&issuer=Lockbox&digits=6&period=30&skew=1&algorithm=SHA256
<QR Code>
TOTP link copied to clipboard!
Random password generated and copied to clipboard
Password added successfully
// User's pov now: 
// - What's the totp url for? 
// - How do I use the url/qr code? 
// - How do I store it? 
// - When will I need it again? 

There should be some guided instructions that will answer the questions mentioned in the comments.

SonuBardai commented 11 months ago

For reference: Initial work on 2FA was done in this PR: https://github.com/SonuBardai/lockbox/pull/81