mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix url parameter
remove unused namespace
This commit is contained in:
@@ -728,6 +728,9 @@ class Login implements ControllerProviderInterface
|
||||
case 'session' :
|
||||
$warning = _('Error while authentication, please retry or contact an admin if problem persists');
|
||||
break;
|
||||
case 'unexpected' :
|
||||
$warning = _('An unexpected error occured during authentication process, please contact an admin');
|
||||
break;
|
||||
}
|
||||
|
||||
if (ctype_digit($request->query->get('usr'))) {
|
||||
@@ -984,7 +987,7 @@ class Login implements ControllerProviderInterface
|
||||
|
||||
return $app->redirect($url);
|
||||
} catch (\Exception $e) {
|
||||
return $app->redirect("/login/?redirect=" . $request->request->get('redirect') . "&error=" . _('An error occured'));
|
||||
return $app->redirect("/login/?redirect=" . $request->request->get('redirect') . "&error=unexpected");
|
||||
}
|
||||
} else {
|
||||
return $app->redirect("/login/");
|
||||
|
@@ -7,7 +7,6 @@ use Alchemy\Phrasea\Border\File;
|
||||
use Doctrine\Common\DataFixtures\Loader;
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Filesystem\Filesystem;
|
||||
use Symfony\Component\HttpKernel\Client;
|
||||
use Symfony\Component\DomCrawler\Crawler;
|
||||
|
||||
|
Reference in New Issue
Block a user