We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7940127 commit fedd74cCopy full SHA for fedd74c
src/OTP.php
@@ -164,13 +164,11 @@ public function get()
164
*/
165
public function verify($generatedOTP)
166
{
167
- for ($i = 0; $i < $this->maxVerificationNumber; $i++) {
+ for ($x = 0; $x < $this->maxVerificationNumber; $x++) {
168
169
$this->generate();
170
171
- if ($this->get() == $generatedOTP) {
172
- return true;
173
- }
+ if ($this->get() === $generatedOTP) { return true; }
174
175
$this->counter++;
176
}
0 commit comments