mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
fix: Adjusting
This commit is contained in:
parent
d1af8cfbe0
commit
8d66536e7f
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue