silverstripe / silverstripe-mfa

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

FIX Disable HTTP caching on all relevant MFA API endpoints #422

Closed Cheddam closed 3 years ago

Cheddam commented 3 years ago

Follow up to #417, applying the cache configuration to schema fetching and registration initialisation in both the main MFA UI and the Profile UI.

Fixes #393.

Cheddam commented 3 years ago

@emteknetnz Have applied tests, and expanded the scope a bit (I realised this might be impacting the registration flow in the Profile UI too, and noticed that there were early exits in the main registration flow so shifted all of the cache control into LoginHandler for consistency.)