Add the Login form.

This commit is contained in:
Dave Smith-Hayes 2024-02-22 21:24:43 -05:00
parent d010df6f98
commit 27a9cea714
4 changed files with 41 additions and 4 deletions

View File

@ -47,15 +47,16 @@
},
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-pdo": "*",
"composer/package-versions-deprecated": "^1.10.99",
"elie29/zend-phpdi-config": "^9.0",
"laminas/laminas-component-installer": "^2.6 || ^3.0",
"laminas/laminas-config-aggregator": "^1.6",
"laminas/laminas-diactoros": "^3.0.0",
"laminas/laminas-stdlib": "^3.6",
"mezzio/mezzio": "^3.7",
"mezzio/mezzio-helpers": "^5.7",
"elie29/zend-phpdi-config": "^9.0",
"mezzio/mezzio-fastroute": "^3.11.0",
"mezzio/mezzio-helpers": "^5.7",
"mezzio/mezzio-platesrenderer": "^2.10"
},
"require-dev": {

5
app/composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "cd2d209ff337587d515517e139e0388f",
"content-hash": "ac40ea0195435e6db97e4041dd7b543c",
"packages": [
{
"name": "brick/varexporter",
@ -7126,7 +7126,8 @@
"prefer-stable": false,
"prefer-lowest": false,
"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-overrides": {

View 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>

View 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>