Skip to content

Authentication other than User Model #10

@arshaviras

Description

@arshaviras

What happened?

I have two panels one is Admin and second is Student.
I have Student Model which extends Authenticatable and implements FilamentUser. I want to generate passwordless links and send to students and they can login via magic link.
In plugin I changed all User models to Student model.
Also changed in file PasswordlessLogin.php return URL::temporarySignedRoute('filament.' . Filament::getCurrentPanel()->getId() . '.auth.link', now()->addMinutes(30), $user); to return URL::temporarySignedRoute('filament.' . 'student' . '.auth.link', now()->addMinutes(30), $user); because Filament::getCurrentPanel()->getId() return 'admin', because I generating links from Admin Panel for Student Panel.
Added Action on Table and generated login link for student user.

How to reproduce the bug

When I trying to login via that generated link it redirect to login page. In addition I can login with email and password via plugin's custom login page.

What I need to change/add for success authenticating?

Package Version

0.3.0

PHP Version

8.2.12

Laravel Version

11.10.0

Which operating systems does with happen with?

Windows

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions