Changeset View
Changeset View
Standalone View
Standalone View
src/app/Handlers/Auth2F.php
<?php | <?php | ||||
namespace App\Handlers; | namespace App\Handlers; | ||||
class Auth2F extends \App\Handlers\Base | class Auth2F extends \App\Handlers\Base | ||||
{ | { | ||||
public static function entitleableClass() | public static function entitleableClass(): string | ||||
{ | { | ||||
return \App\User::class; | return \App\User::class; | ||||
} | } | ||||
public static function preReq($entitlement, $object) | public static function preReq($entitlement, $object): bool | ||||
{ | { | ||||
if (!$entitlement->sku->active) { | if (!$entitlement->sku->active) { | ||||
\Log::error("Sku not active"); | \Log::error("Sku not active"); | ||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
public static function priority(): int | public static function priority(): int | ||||
{ | { | ||||
return 60; | return 60; | ||||
} | } | ||||
} | } |