mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
review: addressing
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Appwrite\Auth\Validator;
|
||||
|
||||
use Utopia\Http\Validator;
|
||||
use Utopia\Http\Validator\Text;
|
||||
|
||||
/**
|
||||
* MockNumber.
|
||||
@@ -45,7 +46,7 @@ class MockNumber extends Validator
|
||||
return false;
|
||||
}
|
||||
|
||||
$otp = new Validator\Text(6, 6, Validator\Text::NUMBERS);
|
||||
$otp = new Text(6, 6, Validator\Text::NUMBERS);
|
||||
if (!$otp->isValid($value['otp'])) {
|
||||
$this->message = 'Invalid OTP. Please make sure the OTP is a 6 digit number';
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user