-
Notifications
You must be signed in to change notification settings - Fork 120
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
Email verification controller #116
Email verification controller #116
Conversation
EzimetYusup
commented
Oct 17, 2022
- updated config to have Path to email verification Controller component.
- Moved Authenticate middleware to the EmailVerificationController
@@ -26,10 +26,10 @@ | |||
->name("verification.notice"); | |||
|
|||
Route::get("email/verify/{id}/{hash}", [ | |||
EmailVerificationController::class, | |||
config('filament-breezy.email_verification_controller_path'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this a breaking change to use this without default value?
as other (already running) apps that don't have this config will receive null?
or am i wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, I didn't test it, just asking, how laravel handling this? does it merge package config with user config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is. I am reviewing now. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anytime ^^, thanks for your hard work.
@@ -10,6 +10,11 @@ | |||
|
|||
class EmailVerificationController extends Controller | |||
{ | |||
public function __construct() | |||
{ | |||
$this->middleware([Authenticate::class]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not namespaced correctly and breaks as it is looking for JeffGreco13\FilamentBreezy\Http\Controllers\Authenticate
class.
Should be Filament\Http\Middleware\Authenticate::class