Project 'cooperatic/kohinos-tav' was moved to 'agplv3/kohinos-tav'. Please update any links and bookmarks that may still have the old path.
Commit 501e57af by Damien Moulard

Merge branch '4297-password-paiement-number' into 'develop'

4297-password-paiement-number

See merge request cooperatic/kohinos-tav!20
parents fd30b467 21aedfa5
......@@ -238,7 +238,7 @@ class UserAdherentController extends FluxController
$data = $form->getData();
$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());
$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