sfbrigade / bats-server

Routed is an app to help ambulances direct non-critical patients to hospital emergency rooms with the most availability.
https://routedapp.org/
GNU Affero General Public License v3.0
18 stars 11 forks source link

Hkuang/feature/reset password #293

Closed holliskuang closed 1 year ago

holliskuang commented 1 year ago

Initial Draft of Reset Password Flow. Uses Totp. 3 new pages.

  1. Initial Reset Email Page(Backend checks if email is valid in database)
  2. Input Code Page (Totp Code Generator, uses Nodemailer to send token to email, if verified, add email and Reset Password Authorization to session(still need to figure out encryption)
  3. Reset Password Page (Password must follow validation rules, removes email and authorization from session once password is changed)