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

Use BreezyCore::slug() instead of hardcoded my-profile #327

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

phh
Copy link
Contributor

@phh phh commented Jan 18, 2024

Since myProfile slug can be modified, it makes sence to use that for the route when using the MustTwoFactor middleware.

Example:

BreezyCore::make()->myProfile(slug: 'profile')->enableTwoFactorAuthentication(force: true),

Before:
Route [filament.admin.pages.my-profile] not defined.

After:
Redirected to admin/profile as expected.

@jeffgreco13 jeffgreco13 merged commit 9462b8a into jeffgreco13:2.x Jan 19, 2024
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.

3 participants