google2fa-laravel icon indicating copy to clipboard operation
google2fa-laravel copied to clipboard

How to "skip" OTP validation page

Open zerosdev opened this issue 4 years ago • 2 comments

I have "_2fa" column in my user table. It has integer value 0 & 1. How to tell this package to "skip" OTP validation if _2fa has 0 value ?

zerosdev avatar Oct 04 '19 18:10 zerosdev

I mean when _2fa has 0 value user will not be forced to the OTP page

zerosdev avatar Oct 04 '19 18:10 zerosdev

Just keep DB column (default google2fa_secret) empty or set to NULL. You don't need extra column for checking status.

arekpietrzyk avatar Oct 19 '19 06:10 arekpietrzyk