Skip to content
Snippets Groups Projects
Commit 07ef506f authored by Nicolas Dubois's avatar Nicolas Dubois
Browse files

Récupération des fichiers en prod de N. Crausaz

parent 0f2f3d6e
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,13 @@ class AuthController extends Controller ...@@ -35,6 +35,13 @@ class AuthController extends Controller
'iat' => time(), 'iat' => time(),
'exp' => time() + 43200 'exp' => time() + 43200
]; ];
// DEV ndubois droits responsable
if ($tequila_attributes["uniqueid"] == "167916") {
$payload["role"] = 'responsable';
}
return JWT::encode($payload, env('JWT_SECRET')); return JWT::encode($payload, env('JWT_SECRET'));
} }
......
<?php <?php
require_once __DIR__ . '/../vendor/autoload.php'; require_once __DIR__ . '/../vendor/autoload.php';
try { try {
...@@ -23,7 +22,7 @@ $app = new Laravel\Lumen\Application( ...@@ -23,7 +22,7 @@ $app = new Laravel\Lumen\Application(
realpath(__DIR__ . '/../') realpath(__DIR__ . '/../')
); );
$app->withFacades(); // pas necessaire ? $app->withFacades();
// $app->withEloquent(); // $app->withEloquent();
/* /*
......
...@@ -26,12 +26,15 @@ return [ ...@@ -26,12 +26,15 @@ return [
'location' => 'Lieu supprimé', 'location' => 'Lieu supprimé',
'job' => 'Métier supprimé', 'job' => 'Métier supprimé',
'application' => 'Candidature supprimée' 'application' => 'Candidature supprimée'
]
], ],
'error' => [ 'sent' => [
'deleted' => [ 'mail' => 'Mail envoyé avec succès'
'position' => 'Des candidatures sont liées à cette offre, cette suppression est impossible !' ]
] ],
'error' => [
'deleted' => [
'position' => 'Des candidatures sont liées à cette offre, cette suppression est impossible !'
] ]
]
]; ];
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<system.webServer> <system.webServer>
<handlers>
<remove name="PHP_7.2" />
<add name="PHP_7.2" path="*.php" verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v7.2\php-cgi.exe" resourceType="Either" requireAccess="Script" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
</handlers>
<rewrite> <rewrite>
<rules> <rules>
<rule name="Silex Front Controller" stopProcessing="true"> <rule name="Silex Front Controller" stopProcessing="true">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment