Add the Login form.
This commit is contained in:
parent
d010df6f98
commit
27a9cea714
@ -47,15 +47,16 @@
|
|||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
|
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
|
||||||
|
"ext-pdo": "*",
|
||||||
"composer/package-versions-deprecated": "^1.10.99",
|
"composer/package-versions-deprecated": "^1.10.99",
|
||||||
|
"elie29/zend-phpdi-config": "^9.0",
|
||||||
"laminas/laminas-component-installer": "^2.6 || ^3.0",
|
"laminas/laminas-component-installer": "^2.6 || ^3.0",
|
||||||
"laminas/laminas-config-aggregator": "^1.6",
|
"laminas/laminas-config-aggregator": "^1.6",
|
||||||
"laminas/laminas-diactoros": "^3.0.0",
|
"laminas/laminas-diactoros": "^3.0.0",
|
||||||
"laminas/laminas-stdlib": "^3.6",
|
"laminas/laminas-stdlib": "^3.6",
|
||||||
"mezzio/mezzio": "^3.7",
|
"mezzio/mezzio": "^3.7",
|
||||||
"mezzio/mezzio-helpers": "^5.7",
|
|
||||||
"elie29/zend-phpdi-config": "^9.0",
|
|
||||||
"mezzio/mezzio-fastroute": "^3.11.0",
|
"mezzio/mezzio-fastroute": "^3.11.0",
|
||||||
|
"mezzio/mezzio-helpers": "^5.7",
|
||||||
"mezzio/mezzio-platesrenderer": "^2.10"
|
"mezzio/mezzio-platesrenderer": "^2.10"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
5
app/composer.lock
generated
5
app/composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "cd2d209ff337587d515517e139e0388f",
|
"content-hash": "ac40ea0195435e6db97e4041dd7b543c",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "brick/varexporter",
|
"name": "brick/varexporter",
|
||||||
@ -7126,7 +7126,8 @@
|
|||||||
"prefer-stable": false,
|
"prefer-stable": false,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": "~8.1.0 || ~8.2.0 || ~8.3.0"
|
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
|
||||||
|
"ext-pdo": "*"
|
||||||
},
|
},
|
||||||
"platform-dev": [],
|
"platform-dev": [],
|
||||||
"platform-overrides": {
|
"platform-overrides": {
|
||||||
|
17
app/src/App/templates/app/login-page.phtml
Normal file
17
app/src/App/templates/app/login-page.phtml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?php $this->layout('layout::default', ['title' => 'Home']) ?>
|
||||||
|
<div>
|
||||||
|
<form action="/action" method="POST">
|
||||||
|
<div>
|
||||||
|
<label for="username" name="username">Username</label>
|
||||||
|
<input type="text" name="username" required />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label for="password" name="password">Password</label>
|
||||||
|
<input type="password" name="password" required />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="submit" name="submit" value="Submit" />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
18
app/src/App/templates/fragments/login-form.phtml
Normal file
18
app/src/App/templates/fragments/login-form.phtml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<form action="/login" action="POST">
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<label for="username" name="username">Username</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="text" name="username" require />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<label for="password" name="password">Password</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<input type="password" name="password" require />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
Loading…
Reference in New Issue
Block a user