Skip to content

Multi-Factor Auth with OTP

Brings back multi-factor auth with OTP.

  1. Enable via a new button on /auth/edit page
  2. Will redirect you to /auth/mfa where you can configure MFA with OTP
  3. Disable the same way
  4. Login Page component now dynamically displays either Login form or OTP form
  5. Home about page has a modal for OTP that is rendered when mfa_required returns on the login form
  6. Attempt at some basic tests: OTP auth form has a snapshot test, left failed test commented out on login page because the stub logic I created there is working, it's just not useful in that particular test. I need to figure out how to get enzyme shallow to work to finish that test... but it's not working for me. Don't know why. I might continue working on this...

Screenshot_from_2020-08-04_10.52.44

Screenshot_from_2020-08-04_10.53.05

Screenshot_from_2020-08-04_10.16.25

Screenshot_from_2020-08-04_10.16.12

Screenshot_from_2020-08-04_10.21.19

Screenshot_from_2020-08-04_10.51.53

Screenshot_from_2020-08-04_10.20.59

Edited by Mary Kate

Merge request reports

Loading