Files
pterodactyl-panel/app/Contracts/Users/SetsUpTwoFactor.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

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;
}