Comments (4)
Hi. I wrote up a piece that explains how to substitute the LoginResponse so that projects can include some branching logic in the login process to redirect the user to a route according to their role (for instance).
It has been pointed out to me that this does not work if you use two-factor authentication.
The problem is that there is no contract for TwoFactorLoginresponse
and the TwoFactorLoginResponse is not bound into the container and therefore cannot be swapped out.
( see https://talltips.novate.co.uk/laravel/laravel-8-conditional-login-redirects )
I could try a PR ?
from fortify.
Can you be a bit more specific at what you want to do?
from fortify.
Hi. I wrote up a piece that explains how to substitute the LoginResponse so that projects can include some branching logic in the login process to redirect the user to a route according to their role (for instance).
It has been pointed out to me that this does not work if you use two-factor authentication.
The problem is that there is no contract for
TwoFactorLoginresponse
and the TwoFactorLoginResponse is not bound into the container and therefore cannot be swapped out.( see https://talltips.novate.co.uk/laravel/laravel-8-conditional-login-redirects )
I could try a PR ?
Yes we want this. Please add the feature.
from fortify.
@snapey yeah just try a pr, thanks.
from fortify.
Related Issues (20)
- Integrate Precognition Into Fortify Route HOT 1
- Route [logout] not defined after changing the app_env from local to production
- Without override the PasswordResetLinkController@store we cannot add reCAPTCHA HOT 1
- Name all routes for Ziggy support when enableViews is false HOT 2
- Paths override with dot in route name does not work HOT 3
- Fortify http request methods for routes requiring multipart/form-data HOT 1
- Support for laravel passport HOT 2
- Provide "Don't ask me again on this computer" feature HOT 3
- Implementation for ActivityLogs HOT 1
- Custom Rate Limiter HOT 1
- Confusion between the username/email field in the database and the username/email field in the request (form) HOT 4
- No error message on expired token HOT 4
- Can we get a way to add additional validation rules to LoginRequest?
- A proposal for Fortify 2.0 HOT 4
- Used password reset link still valid to change password again HOT 1
- RegisterViewResponse is not instantiable. HOT 3
- How to disable setting up Google Authenticator for a certain user HOT 1
- void
- authenticateUsing called twice HOT 3
- Bacon QR version 3.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fortify.