From 8d66536e7fc11c940577946a99ba0ea8e2c28b16 Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:34:57 -0400 Subject: [PATCH] fix: Adjusting --- src/Appwrite/Auth/Validator/MockNumber.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Auth/Validator/MockNumber.php b/src/Appwrite/Auth/Validator/MockNumber.php index 2c1c81f863..0a8db26ab2 100644 --- a/src/Appwrite/Auth/Validator/MockNumber.php +++ b/src/Appwrite/Auth/Validator/MockNumber.php @@ -2,8 +2,7 @@ namespace Appwrite\Auth\Validator; -use Utopia\Validator; -use Utopia\Validator\Text; +use Utopia\Http\Validator; /** * MockNumber. @@ -46,7 +45,7 @@ class MockNumber extends Validator return false; } - $otp = new Text(6, 6); + $otp = new Validator\Text(6, 6); if (!$otp->isValid($value['otp'])) { $this->message = 'OTP must be a valid string and exactly 6 characters.'; return false;