mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
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;
|
|
}
|