Fix: Numeric bypass code defaults to integer type

When adding a numeric only bypass code into config.yml, it is treated as an integer which causes validation to fail. A workaround is to surround the parameter with double quotes but many users may not be aware of this. This fix will explicitly convert it to a string.
This commit is contained in:
waldermort 2015-01-13 20:16:15 +08:00
parent 94c5f0a03b
commit 0cb34f33b0

View File

@ -60,7 +60,7 @@ class CaptchaValidator
$this->session = $session;
$this->key = $key;
$this->invalidMessage = $invalidMessage;
$this->bypassCode = $bypassCode;
$this->bypassCode = (string)$bypassCode;
$this->humanity = $humanity;
}