Emmanuel
how to setup email verification after setting up multi tenant
I followed the steps in the documentation. I actually found out that when a user registers, the email verification link is sent out and the user is logged in. When the link is clicked the user is redirected to app/new and there he gets the 403 error message. Since no tenant has being created yet. So the email validation doesn’t work because the user hasn’t created a tenant yet
6 replies
Multiple login models
You will need to define a new AuthGuard
guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
'hash' => false,
],
'consumer' => [ 'driver' => 'session', 'provider' => 'consumers', ], ], And then associate the provider with your model 'providers' => [ 'consumers' => [ 'driver' => 'eloquent', 'model' => App\Consumers::class, ], Then use the new AuthGuard in the filament panel
'consumer' => [ 'driver' => 'session', 'provider' => 'consumers', ], ], And then associate the provider with your model 'providers' => [ 'consumers' => [ 'driver' => 'eloquent', 'model' => App\Consumers::class, ], Then use the new AuthGuard in the filament panel
7 replies