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

Email verification controller #116

Merged

Conversation

EzimetYusup
Copy link
Contributor

  • updated config to have Path to email verification Controller component.
  • Moved Authenticate middleware to the EmailVerificationController

@jeffgreco13 jeffgreco13 merged commit 1a109d9 into jeffgreco13:1.x Oct 19, 2022
@@ -26,10 +26,10 @@
->name("verification.notice");

Route::get("email/verify/{id}/{hash}", [
EmailVerificationController::class,
config('filament-breezy.email_verification_controller_path'),
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Owner

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!

Copy link
Contributor

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]);
Copy link
Contributor

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

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.

None yet

4 participants