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

Not able to use another model / table instead of User (model) / users (table) #167

Open
acgtwentyone opened this issue May 9, 2022 · 0 comments

Comments

@acgtwentyone
Copy link
Contributor

Current behaviour

We can only use User model (the secret is stored under the users table only).

Context

Let's say i have a laravel application where i am using User (users table) model only for the admin login and logout functionality. And in the same application i am using the Hookogin (hooklogins table) model as a custom model to autenticate users. How can i use the Hooklogin instead of User ?

Proposed

We add a new property under the config file named "otp_model" witch refer to the model associated to the Two Factor, and also the table we are storing the secret.

Example

'otp_model' => 'Hooklogin',

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

1 participant