first commit symfony 6
This commit is contained in:
parent
dd85dcd74a
commit
52736bc3f8
15
README.md
15
README.md
@ -121,6 +121,12 @@ sample apache configuration in /etc/apache2/site-available/000-
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:1080>
|
||||
# For mailer server
|
||||
ProxyPass / http://localhost:1080/
|
||||
ProxyPassReverse / http://localhost:1080/
|
||||
</VirtualHost>
|
||||
|
||||
```
|
||||
|
||||
|
||||
@ -135,7 +141,14 @@ cp /var/www/html/nineskeletor/bin/nineskeletor.cron /etc/cron.d/nineskeletor
|
||||
## Messenger worker
|
||||
|
||||
Make sure the messenger consume the bus
|
||||
Need to send mail
|
||||
Needed to send mail
|
||||
You can copy this bin/nineskeletor.service in your systemd
|
||||
```
|
||||
cp /var/www/html/nineskeletor/bin/nineskeletor.service /etc/systemd/system/
|
||||
systemctl enable nineskeletor.service
|
||||
systemctl start nineskeletor.service
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
13
bin/nineskeletor.service
Normal file
13
bin/nineskeletor.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
StartLimitIntervalSec=20s
|
||||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/php -d memory_limit=-1 /var/www/html/nineskeletor/bin/console messenger:consume async --memory-limit=512m --env=prod
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
TimeoutSec=300
|
||||
User=www-data
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -205,8 +205,8 @@ class RegistrationController extends AbstractController
|
||||
// Récupération des data du formulaire
|
||||
$form->handleRequest($request);
|
||||
|
||||
// si mode de registration byuser
|
||||
if($appmoderegistration=="byuser") {
|
||||
// si mode de registration BYUSER
|
||||
if($appmoderegistration=="BYUSER") {
|
||||
$idstatut=2;
|
||||
}
|
||||
else {
|
||||
@ -714,7 +714,7 @@ class RegistrationController extends AbstractController
|
||||
if ($form->get('submit')->isClicked() && $mode=="submit") {
|
||||
// Si validation par administrateur demander une motivation
|
||||
$appmoderegistration = $this->getParameter('appModeregistration');
|
||||
if(is_null($data->getMotivation())&&$appmoderegistration=="byadmin") {
|
||||
if(is_null($data->getMotivation())&&$appmoderegistration=="BYADMIN") {
|
||||
// On recherche le domaine du mail dans la liste blanche
|
||||
$email=explode("@",$data->getEmail());
|
||||
$domaine=end($email);
|
||||
|
Loading…
Reference in New Issue
Block a user