mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
20 lines
451 B
PHP
20 lines
451 B
PHP
<?php
|
|||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Pterodactyl\Contracts\Users;
|
||
|
|
|
||
|
|
use Pterodactyl\Models\User;
|
||
|
|
|
||
|
|
interface SetsUpTwoFactor
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Generate a 2FA token and store it in the database before returning the
|
||
|
|
* QR code URL. This URL will need to be attached to a QR generating service in
|
||
|
|
* order to function.
|
||
|
|
*
|
||
|
|
* @return array{image_url_data: string, secret: string}
|
||
|
|
*/
|
||
|
|
public function setup(User $user): array;
|
||
|
|
}
|