Преглед изворни кода

setup a 15' expiration delay to captcha challenge

olinox14 пре 1 година
родитељ
комит
1072717278
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/State/Provider/ChallengeProvider.php

+ 2 - 1
src/State/Provider/ChallengeProvider.php

@@ -29,7 +29,8 @@ class ChallengeProvider implements ProviderInterface
 
         $options = new ChallengeOptions([
             'hmacKey'   => $this->hmacKey,
-            'maxNumber' => 100000
+            'maxNumber' => 100000,
+            'expires' => (new \DateTime())->modify('+15 minute')
         ]);
 
         return Altcha::createChallenge($options);