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
387 B
PHP
20 lines
387 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Actions\Users;
|
|
|
|
use Pterodactyl\Contracts\Users\DisablesTwoFactor;
|
|
use Pterodactyl\Models\User;
|
|
|
|
final class DisableTwoFactor implements DisablesTwoFactor
|
|
{
|
|
public function disable(User $user): void
|
|
{
|
|
$user->update([
|
|
'totp_authenticated_at' => now(),
|
|
'use_totp' => false,
|
|
]);
|
|
}
|
|
}
|