diff --git a/src/Appwrite/Auth/MFA/Challenge.php b/src/Appwrite/Auth/MFA/Challenge.php index 67c169a2b3..9d0457b273 100644 --- a/src/Appwrite/Auth/MFA/Challenge.php +++ b/src/Appwrite/Auth/MFA/Challenge.php @@ -6,6 +6,6 @@ use Utopia\Database\Document; abstract class Challenge { - abstract static function verify(Document $user, string $otp): bool; - abstract static function challenge(Document $challenge, Document $user, string $otp): bool; + abstract public static function verify(Document $user, string $otp): bool; + abstract public static function challenge(Document $challenge, Document $user, string $otp): bool; } diff --git a/src/Appwrite/Auth/MFA/Provider.php b/src/Appwrite/Auth/MFA/Provider.php index d056368900..a5c2a29af0 100644 --- a/src/Appwrite/Auth/MFA/Provider.php +++ b/src/Appwrite/Auth/MFA/Provider.php @@ -43,7 +43,7 @@ abstract class Provider return $this->instance->getProvisioningUri(); } - static function generateBackupCodes(int $length = 6, int $total = 6): array + public static function generateBackupCodes(int $length = 6, int $total = 6): array { $backups = [];