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

Tenant password reset token is being stored on landlord password_reset_tokens table #483

Closed
pratikkuikel opened this issue Aug 13, 2023 · 1 comment

Comments

@pratikkuikel
Copy link

I am using filamentphp v3 with AdminPanel and TenantPanel, At the end of configuring and testing password resets I noticed that : for the password reset tokens the password reset requested from tenant panel is being stored to landlord database, while the reset works just fine. I wonder what is causing this behavior ! , Everything works fine despite the tenant password resets being stored on landlord's table.
The password reset mail just works with the tenant subdomain and the password reset is successful but I find this behavior weird.
I need some guidance.

I am using different password brokers for landlord and tenant :

 'providers' => [
        'landlords' => [
            'driver' => 'eloquent',
            'model' => App\Models\Landlord\User::class,
        ],

        'tenants' => [
            'driver' => 'eloquent',
            'model' => App\Models\Tenant\User::class,
        ],
    ], 
'passwords' => [
        'landlords' => [
            'provider' => 'landlords',
            'table' => 'password_reset_tokens',
            'expire' => 60,
            'throttle' => 60,
        ],
        'tenants' => [
            'provider' => 'tenants',
            'table' => 'password_reset_tokens',
            'expire' => 60,
            'throttle' => 60,
        ],
    ],

landlord password resets works too. Everything is working as expected.

@masterix21
Copy link
Collaborator

Duplicate of #482

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

No branches or pull requests

2 participants