Commit 46430698 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Modif page 403 Unauthorized.

parent aec8be9e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -192,6 +192,9 @@ return array(
        ),
    ),
    'view_manager' => array(
        'template_map' => array(
            'error/403' => __DIR__ . '/../view/error/403.phtml',
        ),
        'template_path_stack' => array(
            'unicaen-auth' => __DIR__ . '/../view',
        ),

view/error/403.phtml

0 → 100644
+14 −0
Original line number Diff line number Diff line
<?php $this->headTitle()->append($title = $this->translate("403 - Accès interdit")) ?>

<div class="jumbotron">
    <h1><?php echo $title ?></h1>

    <?php if (\BjyAuthorize\Guard\Controller::ERROR === $error || \BjyAuthorize\Guard\Route::ERROR === $error) : ?>
        <h2 class="text-danger"><?php echo $message = $this->translate("Vous n'êtes pas autorisé(e) à accéder à cette page.") ?></h2>
    <?php elseif ($error == 'error-unauthorized') : ?>
        <h2 class="text-danger"><?php echo $message ?></h2>
        <h3><?php echo $this->translate($reason); ?></h3>
    <?php else : ?>
        <h2 class="text-danger"><?php echo $this->translate("Erreur inattendue.") ?></h2>
    <?php endif;?>
</div>
 No newline at end of file