silverstripe / silverstripe-mfa

MultiFactor Authentication for Silverstripe CMS
BSD 3-Clause "New" or "Revised" License
11 stars 25 forks source link

HTTP 500 errors during MFA verification result in an endless spinner #378

Closed madmatt closed 4 years ago

madmatt commented 4 years ago

If you trigger an HTTP 500 during the MFA verification (e.g. the HTTP POST to /Security/login/default/mfa/verify/totp?SecurityID=<redacted>) and the response is an HTTP 500 (generally because you're in live mode and there's an exception thrown), the site never refreshes and you just get stuck looking at the spinner forever.

Acceptance Criteria

Resolving the root causes of these error responses is out of scope for this issue.

PRs

Note: not fixing this for SS3 as this is a non-critical issue

Cheddam commented 4 years ago

Definitely belongs here @madmatt, thanks for raising this 👍

Cheddam commented 4 years ago

Dug into this today, and though I don't have a PR ready for review, here are some notes: