svthalia / concrexit

Thalia Website built on Django.
https://thalia.nu
Other
22 stars 11 forks source link

Add 2FA requirement for adminpage #3722

Closed T8902 closed 3 weeks ago

T8902 commented 3 weeks ago

Closes #3702

Summary

Locks admin screen behind the 2FA because it's safer

How to test

  1. Go to admin screen without 2FA (note this doesn't work in debugging since I made an exception)
  2. Get redirected to 2fa screen with an error
  3. turn on 2fa
  4. be able to go to admin