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
'iat' => time(),
'exp' => time() + 43200
];
// DEV ndubois droits responsable
if ($tequila_attributes["uniqueid"] == "167916") {
$payload["role"] = 'responsable';
}
return JWT::encode($payload, env('JWT_SECRET'));
}
......
<?php
require_once __DIR__ . '/../vendor/autoload.php';
try {
......@@ -23,7 +22,7 @@ $app = new Laravel\Lumen\Application(
realpath(__DIR__ . '/../')
);
$app->withFacades(); // pas necessaire ?
$app->withFacades();
// $app->withEloquent();
/*
......
......@@ -26,12 +26,15 @@ return [
'location' => 'Lieu supprimé',
'job' => 'Métier supprimé',
'application' => 'Candidature supprimée'
]
],
'error' => [
'deleted' => [
'position' => 'Des candidatures sont liées à cette offre, cette suppression est impossible !'
]
'sent' => [
'mail' => 'Mail envoyé avec succès'
]
],
'error' => [
'deleted' => [
'position' => 'Des candidatures sont liées à cette offre, cette suppression est impossible !'
]
]
];
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<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>
<rules>
<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