mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-182 #fix validation authentication
This commit is contained in:
@@ -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() : '';
|
||||
|
||||
|
Reference in New Issue
Block a user