Commit 72f78dda by Yvon

put fix balance adherent password in .env file

parent bf498140
...@@ -51,6 +51,7 @@ AUTOMATISATION_RECONVERSION=0 ...@@ -51,6 +51,7 @@ AUTOMATISATION_RECONVERSION=0
PRESTA_EXTRA_DATA=0 PRESTA_EXTRA_DATA=0
HOUSEHOLD_BASED_ALLOWANCE=0 HOUSEHOLD_BASED_ALLOWANCE=0
SSA_FRIENDLY_FLUX_TYPE_NAMES=0 SSA_FRIENDLY_FLUX_TYPE_NAMES=0
FIX_BALANCE_ADHERENT_PASSWORD=ChangeMe
EMAIL_ERROR=technique@kohinos.net EMAIL_ERROR=technique@kohinos.net
EMAIL_USER_FROM=noreply@kohinos.fr EMAIL_USER_FROM=noreply@kohinos.fr
......
...@@ -18,6 +18,7 @@ parameters: ...@@ -18,6 +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)%'
# 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
......
...@@ -427,7 +427,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -427,7 +427,7 @@ class AdherentAdmin extends AbstractAdmin
&& $event->getForm()->has('fixedBalance') && $event->getForm()->has('fixedBalance')
&& $event->getForm()->get('fixedBalance')->getData() && $event->getForm()->get('fixedBalance')->getData()
&& $event->getForm()->get('fixedBalance')->getData() >= 0) { && $event->getForm()->get('fixedBalance')->getData() >= 0) {
$password = "cestl@fete"; $password = $this->getConfigurationPool()->getContainer()->getParameter('fix_balance_adherent_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) {
......
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