Commit 65e49214 by Damien Moulard

fix check payment code between 4 & 8 digits

parent 10db1f60
......@@ -173,7 +173,7 @@ class UserAdherentController extends FluxController
$data = $form->getData();
$plainCode = $data->getPaymentCode();
if (is_numeric($plainCode) && strlen($plainCode) > 4 && strlen($plainCode) < 8) {
if (is_numeric($plainCode) && strlen($plainCode) >= 4 && strlen($plainCode) <= 8) {
$encoded = $encoder->encodePassword($this->getUser(), $plainCode);
$adherent->setPaymentCode($encoded);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment