-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add extra data on session guard recaller #42271
Comments
Let's be honest, @taylorotwell only reviews PR from known collaborators, he closes everyone else without reviewing with the same copy/paste message
|
Hey @PaolaRuby, please don't move discussions to issues. Also, Taylor is free to merge whatever he prefers into the codebase. I'm sorry you feel differently. |
@driesvints thanks for answer
It's ok, but there is no info for this, and no option for make it possible, i am questioning on every place i know without answer, here is my last option |
How are you setting these custom segments? Why do you need them at all? Why not store them in a database table associated with the user? |
Also, Laravel has over 2,000 contributors - so, no, they are not all my "known collaborators". |
Multi company login, company is a manyToMany relation with user, on login user pick wich company use for session, on "remember me" laravel rebuild the user session but not the company, of course i can create another cookie for rebuild the picked company, but would be great if the recaller can handle that extra id/ids @taylorotwell thank, first time you answer me
Sorry ,I don't know how to solve it #42262 keeps same functionality, but adds option for more segments, really small not breaking change
Login or custom session guard
Rebuild the picked login company on session with remember me(recaller)
User can be logged on two or more companies at the same time(using different browsers, or with incognito mode) |
Discussed in #42067
Originally posted by PaolaRuby April 20, 2022
Only admit 3 segments,
id
,token
,hash
framework/src/Illuminate/Auth/Recaller.php
Lines 80 to 85 in b9203fc
Is there a config for set a custom recaller with more segments?
Is there a way or a plugin for customize session recaller?
If we create a custom session class extending
SessionGuard
, or we change theremember me
cookie on login, we need a way to get the extra data from recallerThis is useful when you have a multi company login, or when needs an extra id/value to rebuild the session
The text was updated successfully, but these errors were encountered: