michaelKurowski / lokim2

An internet messenger that cares about privacy.
4 stars 0 forks source link

Password reset via secret code #144

Open michaelKurowski opened 6 years ago

michaelKurowski commented 6 years ago

Is your feature request related to a problem? Please describe. Upon db leakage, attacker can obtain hashed emails of users from db.

Describe the solution you'd like User should be able to choose upon registration if He should be able to reset password in the future with secret code sent to his email address, or just use his email address.

Describe alternatives you've considered Registration via email address only.

User story

  1. User creates a new account
  2. User is being asked is He wants to reset passwords in future with email or secret code
  3. User chooses secret code
  4. User is being asked to provide an email address
  5. Server generates secret code and sends the email to the user, server won't save email to db
  6. User forgots a password
  7. User enters LokIM
  8. User clicks "I forgot password" button
  9. User is being asked to choose password reset option.
  10. User chooses secret code.
  11. User is being asked for secret code
  12. User types secret code in
  13. LokIM asks user to enter a new password 2 times.
  14. User can use new password to log in.

Additional context