Commit 438ea32d by Damien Moulard

change env variable name

parent 7e5dcd51
...@@ -18,7 +18,7 @@ parameters: ...@@ -18,7 +18,7 @@ parameters:
presta_extra_data: '%env(PRESTA_EXTRA_DATA)%' presta_extra_data: '%env(PRESTA_EXTRA_DATA)%'
household_based_allowance: '%env(HOUSEHOLD_BASED_ALLOWANCE)%' household_based_allowance: '%env(HOUSEHOLD_BASED_ALLOWANCE)%'
ssa_friendly_flux_type_names: '%env(SSA_FRIENDLY_FLUX_TYPE_NAMES)%' ssa_friendly_flux_type_names: '%env(SSA_FRIENDLY_FLUX_TYPE_NAMES)%'
fix_balance_adherent_password: '%env(FIX_BALANCE_ADHERENT_PASSWORD)%' extra_security_admin_password: '%env(EXTRA_SECURITY_ADMIN_PASSWORD)%'
# PARAMETRES DES IMPORTS POSSIBLE POUR L'APPLICATION DE GESTION DE MONNAIE LOCALE COMPLEMENTAIRE # PARAMETRES DES IMPORTS POSSIBLE POUR L'APPLICATION DE GESTION DE MONNAIE LOCALE COMPLEMENTAIRE
......
...@@ -459,7 +459,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -459,7 +459,7 @@ class AdherentAdmin extends AbstractAdmin
&& $event->getForm()->get('fixedBalance')->getData() && $event->getForm()->get('fixedBalance')->getData()
&& $event->getForm()->get('fixedBalance')->getData() >= 0 && $event->getForm()->get('fixedBalance')->getData() >= 0
) { ) {
$password = $this->getConfigurationPool()->getContainer()->getParameter('fix_balance_adherent_password'); $password = $this->getConfigurationPool()->getContainer()->getParameter('extra_security_admin_password');
//this password purpose is to be an additional warning for super admin and //this password purpose is to be an additional warning for super admin and
//is not intended to be securely stored as only super admin can use this feature //is not intended to be securely stored as only super admin can use this feature
if ($event->getForm()->get('password')->getData() !== $password) { if ($event->getForm()->get('password')->getData() !== $password) {
...@@ -481,7 +481,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -481,7 +481,7 @@ class AdherentAdmin extends AbstractAdmin
&& $event->getForm()->get('cancelRecurrentPaymentPassword')->getData() && $event->getForm()->get('cancelRecurrentPaymentPassword')->getData()
&& $event->getForm()->get('cancelRecurrentPaymentPassword')->getData() != '' && $event->getForm()->get('cancelRecurrentPaymentPassword')->getData() != ''
) { ) {
$password = $this->getConfigurationPool()->getContainer()->getParameter('fix_balance_adherent_password'); $password = $this->getConfigurationPool()->getContainer()->getParameter('extra_security_admin_password');
//this password purpose is to be an additional warning for super admin and //this password purpose is to be an additional warning for super admin and
//is not intended to be securely stored as only super admin can use this feature //is not intended to be securely stored as only super admin can use this feature
......
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