Files
animethemes-server/app/GraphQL/Definition/Fields/Auth/User/UserTwoFactorConfirmedAtField.php
T

33 lines
675 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Definition\Fields\Auth\User;
use App\GraphQL\Definition\Fields\DateTimeTzField;
use App\Models\Auth\User;
/**
* Class UserTwoFactorConfirmedAtField.
*/
class UserTwoFactorConfirmedAtField extends DateTimeTzField
{
/**
* Create a new field instance.
*/
public function __construct()
{
parent::__construct(User::ATTRIBUTE_TWO_FACTOR_CONFIRMED_AT, nullable: false);
}
/**
* The description of the field.
*
* @return string
*/
public function description(): string
{
return 'The date the user confirmed their two-factor authentication';
}
}