tests(unit): add RequireTwoFactorAuthenticationTest

This commit is contained in:
Matthew Penner 2021-07-18 11:28:14 -06:00
parent 790f109e66
commit 64110d84af
9 changed files with 373 additions and 7 deletions

View file

@ -0,0 +1,16 @@
<?php
namespace Pterodactyl\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class WebauthnKey extends \LaravelWebauthn\Models\WebauthnKey
{
use HasFactory;
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}