Skip to content

Commit

Permalink
Remember Me
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyquotes committed Oct 21, 2020
1 parent 6aa032c commit def7201
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Options -Indexes

RewriteEngine on
RewriteBase /

#RewriteCond %{HTTP_HOST} stats.garden-exchange.org
#RewriteRule (.*) https://stats.garden-exchange.org/%{REQUEST_URI} [R=301,L]

#RewriteCond %{HTTP_HOST} ^stats.garden-exchange.org$
#RewriteRule ^s(.*)$ https://stats.garden-exchange.org [R=301,L]
#RewriteRule ^s(.*)$ https://stats.garden-exchange.org [R,L]
#RewriteRule (.*)$ https://google.com [R,L]

RewriteCond %{HTTP_HOST} ^garden-exchange.org$
RewriteRule ^(.*)$ https://garden-exchange.org/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www.garden-exchange.org$
RewriteRule ^(.*)$ https://garden-exchange.org/$1 [R=301,L]

#RewriteRule ^w(.*)$ https://garden-exchange.org/$1 [R,L]


#RewriteCond %{HTTP_HOST} ^stats.garden-exchange.org
#RewriteRule ^/?(.*) https://stats.garden-exchange.org/$1
#RewriteRule ^s(.*)$ https://stats.garden-exchange.org/ [R,L]

#RewriteCond %{REQUEST_URI} !^/public/
#RewriteRule ^(.*)$ /public/$1 [L]

#php_value session.cookie_lifetime 604800
#php_value session.gc_maxlifetime 604800
#php_value session.save_path /homez.1003/gardeny/www
5 changes: 4 additions & 1 deletion config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ framework:
session:
cookie_lifetime: 864000
gc_maxlifetime: 864000
handler_id: null
gc_probability: null
# handler_id: session.handler.native_file
handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
#save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
cookie_secure: auto
cookie_samesite: lax

Expand Down
3 changes: 3 additions & 0 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ services:
App\Logger\ClientIpProcessor:
tags:
- { name: monolog.processor }
Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler:
arguments:
- '%env(DATABASE_URL)%'
31 changes: 31 additions & 0 deletions migrations/Version20201019033041.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20201019033041 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}

public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs

}

public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs

}
}
3 changes: 3 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ DirectoryIndex index.php
RewriteCond %{ENV:REDIRECT_STATUS} =""
RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://garden-exchange.org/$1 [R,L]

# If the requested filename exists, simply serve it.
# We only want to let Apache serve files and not directories.
# Rewrite all other queries to the front controller.
Expand Down
Binary file added public/uploads/documents/CGU-Garden-exchange.pdf
Binary file not shown.
8 changes: 4 additions & 4 deletions translations/messages+intl-icu.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -789,23 +789,23 @@
</trans-unit>
<trans-unit id="email.welcome.community">
<source>email.welcome.community</source>
<target>dans la communaute Garden Exchange </target>
<target>dans la communauté Garden Exchange </target>
</trans-unit>
<trans-unit id="email.welcome.next.step">
<source>email.welcome.next.step</source>
<target>Plus que quelques efforts avant de partir dans un jardin formidable :</target>
</trans-unit>
<trans-unit id="email.welcome.next.step.1">
<source>email.welcome.next.step.1</source>
<target>- faire ou finir votre annonce la plus detaillée possible</target>
<target>- Créer ou finaliser votre annonce la plus detaillée possible</target>
</trans-unit>
<trans-unit id="email.welcome.next.step.2">
<source>email.welcome.next.step.2</source>
<target>- trouver un jardin sympa et dialoguer avec leur propriétaire</target>
</trans-unit>
<trans-unit id="email.welcome.next.step.3">
<source>email.welcome.next.step.3</source>
<target>Une fois l'echange validé, vous n'avez plus qu'à préparer vos valises.</target>
<target>Une fois l'échange validé, vous n'avez plus qu'à préparer vos valises.</target>
</trans-unit>
<trans-unit id="email.new.mail.notif">
<source>email.new.mail.notif</source>
Expand All @@ -817,7 +817,7 @@
</trans-unit>
<trans-unit id="email.you.signed">
<source>email.you.signed</source>
<target><![CDATA[Vous etes maintenant inscris sur le site avec cet email: ]]></target>
<target><![CDATA[Vous êtes maintenant inscris sur le site avec cet email: ]]></target>
</trans-unit>
<trans-unit id="email.add.garden">
<source>email.add.garden</source>
Expand Down

0 comments on commit def7201

Please sign in to comment.