Skip to content
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

Derive guard name from user_type #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rico
Copy link
Contributor

@rico rico commented May 5, 2021

Derive the guard name from the user_type if the model has the guard_name attribute. Fall back to the configured guard if not.

This allows to configure a guard on a user_type / model basis.

Derive the guard name from the `user_type` if the model has the `guard_name` attribute. Fall back to the configured guard if not.
@denusklo
Copy link

@edgrosvenor I have encounter issue of login using different role, but somehow when login it will only use the config file'
s default guard (web) but not the one I have chosen login with (eg. students).

And this pr solved my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants