Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Added title to index.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Apr 8, 2020
1 parent e40cb07 commit 5c79f2a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -30,6 +30,7 @@ This package _silently_ enables authentication using 6 digits codes, without Int
* [Protecting the Login](#protecting-the-login)
* [Configuration](#configuration)
+ [Listener](#listener)
+ [Eloquent Model](#eloquent-model)
+ [Input name](#input-name)
+ [Cache Store](#cache-store)
+ [Recovery](#recovery)
Expand Down Expand Up @@ -292,17 +293,17 @@ This may work wonders, but if you want tighter control on how and when prompt fo

> If you change it for your own Listener, ensure it implements the `TwoFactorAuthListener` contract.
### Model
### Eloquent Model

```php
return [
'model' => \DarkGhostHunter\Laraguard\Eloquent\TwoFactorAuthentication::class,
];
```

This is the model where the the Two Factor Authentication data is saved and associated to the User model.
This is the model where the the Two Factor Authentication data, like the shared secret and recovery codes, are saved and associated to the User model.

You can change this model for your own to create, validate and show the shared secret. If you plan to change where and how this is stored, you can just change the model itself or extend it.
You can change this model for your own if you wish.

> If you change it for your own Model, ensure it implements the `TwoFactorTotp` contract.
Expand Down

0 comments on commit 5c79f2a

Please sign in to comment.