Commit 21aedfa5 by Félicie

bug fixed

parent fd30b467
...@@ -238,7 +238,7 @@ class UserAdherentController extends FluxController ...@@ -238,7 +238,7 @@ class UserAdherentController extends FluxController
$data = $form->getData(); $data = $form->getData();
$plainCode = $data->getPaymentCode(); $plainCode = $data->getPaymentCode();
if (is_numeric($plainCode) && strlen($plainCode) >= 4 && strlen($plainCode) <= 8) { if (ctype_digit($plainCode) && strlen($plainCode) >= 4 && strlen($plainCode) <= 8) {
$encoded = crypt($plainCode, $this->getUser()->getSalt()); $encoded = crypt($plainCode, $this->getUser()->getSalt());
$adherent->setPaymentCode($encoded); $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