LifeOnScreen / nova-google2fa

This package provides Google2FA support to Laravel Nova.
23 stars 56 forks source link

Task/RHCAVAPI-470 Adding setting to make use optional #31

Closed NickSnellockNS closed 3 years ago

NickSnellockNS commented 3 years ago

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.

NickSnellockNS commented 3 years ago

Should have been against fork