You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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',
The text was updated successfully, but these errors were encountered:
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',
The text was updated successfully, but these errors were encountered: