review: addressing

This commit is contained in:
Binyamin Yawitz
2024-09-05 14:49:37 -04:00
parent 8e145a9519
commit 439e42e1ab
5 changed files with 6 additions and 18 deletions
+2 -1
View File
@@ -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;