mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
PHRAS-3890: Admin - add "auth failure" - display and purge auth failure - only for super U (#4368)
* admin auth failure * add check superU
This commit is contained in:
@@ -511,6 +511,21 @@ class UserController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function displayAuthFailureAction(Request $request)
|
||||
{
|
||||
return $this->render('admin/auth-failure.html.twig', [
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAuthFailureAction(Request $request)
|
||||
{
|
||||
if ($this->getAuthenticatedUser()->isAdmin()) {
|
||||
$this->app['auth.native.failure-manager']->removeFailureById($request->request->get('failureId'));
|
||||
}
|
||||
|
||||
return $this->render('admin/auth-failure.html.twig', []);
|
||||
}
|
||||
|
||||
public function submitRegistrationAction(Request $request)
|
||||
{
|
||||
$templates = $this->normalizeTemplateArray($request->request->get('template', []));
|
||||
|
Reference in New Issue
Block a user