PHRAS-182 #fix validation authentication

This commit is contained in:
Nicolas Le Goff
2014-07-07 14:58:00 +02:00
parent d454a17adb
commit a91a1c8f0c

View File

@@ -416,15 +416,18 @@ class Push implements ControllerProviderInterface
$app['EM']->flush();
$url = $app->url('lightbox_validation', array(
'ssel_id' => $Basket->getId(),
'LOG' => $app['tokens']->getUrlToken(
$arguments = array('ssel_id' => $Basket->getId());
if (!$app['phraseanet.registry']->get('GV_enable_push_authentication') || !$request->get('force_authentication')) {
$arguments['LOG'] = $app['tokens']->getUrlToken(
\random::TYPE_VALIDATE,
$participant_user->get_id(),
null,
$Basket->getId()
)
));
);
}
$url = $app->url('lightbox_validation', $arguments);
$receipt = $request->get('recept') ? $app['authentication']->getUser()->get_email() : '';