Test route ngix
This commit is contained in:
parent
3fe636f23f
commit
21b5d1b402
@ -24,6 +24,16 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'vault' => [
|
||||||
|
'type' => Literal::class,
|
||||||
|
'options' => [
|
||||||
|
'route' => '/vault',
|
||||||
|
'defaults' => [
|
||||||
|
'controller' => Controller\IndexController::class,
|
||||||
|
'action' => 'vault',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
'srcpull' => [
|
'srcpull' => [
|
||||||
'type' => Literal::class,
|
'type' => Literal::class,
|
||||||
'options' => [
|
'options' => [
|
||||||
@ -49,7 +59,6 @@ return [
|
|||||||
'controllers' => [
|
'controllers' => [
|
||||||
'factories' => [
|
'factories' => [
|
||||||
Controller\IndexController::class => InvokableFactory::class,
|
Controller\IndexController::class => InvokableFactory::class,
|
||||||
Controller\VaultController::class => InvokableFactory::class,
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'view_manager' => [
|
'view_manager' => [
|
||||||
|
@ -23,6 +23,13 @@ class IndexController extends AbstractActionController
|
|||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function vaultAction()
|
||||||
|
{
|
||||||
|
error_log('Action : VaultAction');
|
||||||
|
$view = new ViewModel();
|
||||||
|
$view->setTerminal(true);
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
public function pullAction()
|
public function pullAction()
|
||||||
{
|
{
|
||||||
$view = new JsonModel();
|
$view = new JsonModel();
|
||||||
|
40
module/Application/view/application/index/vault.tpl
Normal file
40
module/Application/view/application/index/vault.tpl
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{extends '../../../../../module/Application/view/layout/layout.tpl'}
|
||||||
|
{block 'content'}
|
||||||
|
<header id="vault-header">
|
||||||
|
<div class="header-wrapper">
|
||||||
|
<a class="navbar-brand" href="/vault">
|
||||||
|
<img src="img/texte-logo.png">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<link href="css/vault.css" type="text/css" rel="stylesheet"/>
|
||||||
|
|
||||||
|
<section class="contact-wrap">
|
||||||
|
<form class="material-form" onsubmit="return genpass();">
|
||||||
|
<div class="input-block floating-field">
|
||||||
|
<label>Url du site</label>
|
||||||
|
<input value="" class="form-control" name="url" type="url" id="url" required>
|
||||||
|
</div>
|
||||||
|
<div class="input-block floating-field">
|
||||||
|
<label>Votre mot de passe pour encoder</label>
|
||||||
|
<input name="salt" type="password" class="form-control" id="salt" required/>
|
||||||
|
</div>
|
||||||
|
<div class="input-block floating-field">
|
||||||
|
<label>Taille</label>
|
||||||
|
<input name="maxchars" type="number" class="form-control" value="10" id="maxchars" required/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="btn square-button material-btn d-sm-none">Générer</button>
|
||||||
|
<button class="btn square-button material-btn d-none d-sm-block">Générer votre mot de passe sécurisé</button>
|
||||||
|
|
||||||
|
<p class="result">
|
||||||
|
<label for="resAlNum">Alphanumérique</label>
|
||||||
|
<input name="resAlNum" class="feedback-input" type="text" class="" id="resAlNum" disabled/>
|
||||||
|
<label for="resAlNumSpe">Alphanumérique + Spé</label>
|
||||||
|
<input name="resAlNumSpe" class="feedback-input" type="text" class="" id="resAlNumSpe" disabled/>
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
</section>
|
||||||
|
<script src="js/libs/sha512.js"></script>
|
||||||
|
<script src="js/vault.js"></script>
|
||||||
|
{/block}
|
@ -26,7 +26,7 @@ return [
|
|||||||
// You can place additional routes that match under the
|
// You can place additional routes that match under the
|
||||||
// route defined above here.
|
// route defined above here.
|
||||||
],
|
],
|
||||||
],
|
],/*
|
||||||
'Vault' => [
|
'Vault' => [
|
||||||
'type' => 'Literal',
|
'type' => 'Literal',
|
||||||
'options' => [
|
'options' => [
|
||||||
@ -42,7 +42,7 @@ return [
|
|||||||
// You can place additional routes that match under the
|
// You can place additional routes that match under the
|
||||||
// route defined above here.
|
// route defined above here.
|
||||||
],
|
],
|
||||||
],
|
],*/
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'view_manager' => [
|
'view_manager' => [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user