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;