add 2fa, make 2fa login page

This commit is contained in:
Milos Holba
2021-06-29 18:41:23 +02:00
parent 6397ce9a67
commit 7d28e09042
4 changed files with 267 additions and 82 deletions

View File

@@ -11,12 +11,13 @@ use Kyslik\ColumnSortable\Sortable;
use App\Notifications\ResetPassword;
use Illuminate\Support\Facades\Storage;
use Illuminate\Notifications\Notifiable;
use Laravel\Fortify\TwoFactorAuthenticatable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable, Billable, Sortable, HasFactory, HasApiTokens;
use Notifiable, Billable, Sortable, HasFactory, HasApiTokens, TwoFactorAuthenticatable;
protected $guarded = [
'id',