Repository navigation
feat(auth): restrict admin access and add administrator provisioning - #20
Merged
Merged
Conversation
- Add the users.is_admin flag, defaulting to false - Allow only administrators to authenticate to and access the Filament panel - Update the local admin seeder and keep the seeded general user non-admin - Add `filmo:create-admin` to create an administrator or promote an existing User - Validate the administrator email, name, and password, with interactive prompts - Update PRODUCT_SPEC.md, ARCHITECTURE.md, and TASKS.md through T-021 Co-authored-by: Samgu Lee <cable8mm@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
users.is_admin(default false) and checking it incanAccessPanel().cable8mm@gmail.com; the seeded general user stays non-admin.php artisan filmo:create-admin {email}to create a new administrator or promote an existing user.--name/--passwordfor automation, and validates email and an 8-character minimum password.Usage
Test plan
php artisan test --compact(100 passed, 2 skipped live tests)XDEBUG_MODE=coverage composer test:coverage(94.22% line coverage)vendor/bin/pint --format agentnpm run build