If GOOGLE_2FA_OPTIONAL is et to true, the middleware will only chack 2FA if the user has registered it.
If GOOGLE_DISPLAY_SECRET_CODE is set to true, a secret code will be displayed as an alternative to the QR code when registering.
A new GET endpoint at 'los/2fa/recover' is provided to allow a link to that page to be inserted into e.g. the user settings page within Nova.
This change adds two environment variables:
GOOGLE_2FA_OPTIONAL GOOGLE_DISPLAY_SECRET_CODE
both default to false.
If GOOGLE_2FA_OPTIONAL is et to true, the middleware will only chack 2FA if the user has registered it. If GOOGLE_DISPLAY_SECRET_CODE is set to true, a secret code will be displayed as an alternative to the QR code when registering.
A new GET endpoint at 'los/2fa/recover' is provided to allow a link to that page to be inserted into e.g. the user settings page within Nova.