Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
72f78dda
Commit
72f78dda
authored
Apr 22, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put fix balance adherent password in .env file
parent
bf498140
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
+3
-1
.env.dist
.env.dist
+1
-0
services.yaml
config/services.yaml
+1
-0
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+1
-1
No files found.
.env.dist
View file @
72f78dda
...
...
@@ -51,6 +51,7 @@ AUTOMATISATION_RECONVERSION=0
PRESTA_EXTRA_DATA=0
HOUSEHOLD_BASED_ALLOWANCE=0
SSA_FRIENDLY_FLUX_TYPE_NAMES=0
FIX_BALANCE_ADHERENT_PASSWORD=ChangeMe
EMAIL_ERROR=technique@kohinos.net
EMAIL_USER_FROM=noreply@kohinos.fr
...
...
config/services.yaml
View file @
72f78dda
...
...
@@ -18,6 +18,7 @@ parameters:
presta_extra_data
:
'
%env(PRESTA_EXTRA_DATA)%'
household_based_allowance
:
'
%env(HOUSEHOLD_BASED_ALLOWANCE)%'
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
...
...
src/Admin/AdherentAdmin.php
View file @
72f78dda
...
...
@@ -427,7 +427,7 @@ class AdherentAdmin extends AbstractAdmin
&&
$event
->
getForm
()
->
has
(
'fixedBalance'
)
&&
$event
->
getForm
()
->
get
(
'fixedBalance'
)
->
getData
()
&&
$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
//is not intended to be securely stored as only super admin can use this feature
if
(
$event
->
getForm
()
->
get
(
'password'
)
->
getData
()
!==
$password
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment