Generate recovery tokens when enabling 2FA on an account
This commit is contained in:
parent
7ee509d8c2
commit
a998b463e3
6 changed files with 145 additions and 8 deletions
16
app/Repositories/Eloquent/RecoveryTokenRepository.php
Normal file
16
app/Repositories/Eloquent/RecoveryTokenRepository.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Repositories\Eloquent;
|
||||
|
||||
use Pterodactyl\Models\RecoveryToken;
|
||||
|
||||
class RecoveryTokenRepository extends EloquentRepository
|
||||
{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return RecoveryToken::class;
|
||||
}
|
||||
}
|
Reference in a new issue