laravel / fortify

Backend controllers and scaffolding for Laravel authentication.

Home Page:https://laravel.com/docs/fortify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2FA Protected Routes/Pages Like Password Confirm

CyberPunkCodes opened this issue · comments

A lot of sites that I have used prompt for a 2FA code when doing special actions. This is exactly like the password.confirm middleware, only for a 2FA code from their authenticator app instead.

Fortify could use a two-factor.confirm middleware to go along with it's 2fa features out of the box.

Heya, yes that sounds useful. Feel free to attempt a PR. If it doesn't makes it in you can always add it to your own app.