typedb / typedb-console

TypeDB Console: CLI for TypeDB and TypeDB Cluster
https://typedb.com
Mozilla Public License 2.0
7 stars 16 forks source link

Confirm a password change before updating a user's password #204

Open jamesreprise opened 1 year ago

jamesreprise commented 1 year ago

Problem to Solve

Currently, we don't confirm that a user has entered the correct password twice (as is common in most password updates found in software).

Current Workaround

Be very careful when you update your password.

Proposed Solution

Prompt the user to enter their new password again, then check that both the new password entries are equivalent. This process would look something like:

> Enter your old password:   *********
> Enter your new password:   ******************
> Confirm your new password: *******************

New password entries did not match! Please double check and confirm your new password is entered correctly.

> Enter your new password:   ******************
> Confirm your new password: ******************

Updated password.

Additional info

Thanks to @SullivanDaly for the recommendation!