1
0
mirror of https://koodu.h-i.works/projects/thebadspace synced 2025-06-25 16:04:37 -05:00

Auth Framework, Part 2

Auth class is back up and running to handle user authorizaion
as well as session managment.
Implemented basic usage on admin index class just for an example.

Added a couple of new template files and css to start defining the
overall style of pages and UI.
This commit is contained in:
Ro
2022-12-13 14:46:45 -08:00
parent 54b5227a0d
commit e424df18aa
10 changed files with 159 additions and 36 deletions

View File

@ -1,10 +1,16 @@
{% extends "base/frame.twig" %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=dfadf">
{% endblock %}
{% block main %}
<section role="intro">
This is the screendoor index
<section role="den-login">
<h1>This is the Den</h1><br/>
{% if notice is defined %}
<div role="system-notice">
{{ notice }}
</div>
{% endif %}
{{ include("forms/login-form.twig") }}
</section>
{% endblock %}

17
templates/back/start.twig Normal file
View File

@ -0,0 +1,17 @@
{% extends "base/frame.twig" %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
{% endblock %}
{% block main %}
<section>
<h1>
Welcome to the Den.
</h1>
Hey
{{ handle }}
. Nice to see you again.
<a href="/logout">Bye bye</a>
</section>
{% endblock %}

View File

@ -0,0 +1,8 @@
<form action="{{ path('back-index') }}" method="post" enctype="multipart/form-data">
<label>Handle</label><br/>
<input type="text" name="handle" value=""/>
<br/>
<label>Password</label><br/>
<input type="password" name="password" value=""/>
<input type="hidden" name="token" value="{{ csrf_token('upload') }}"/><br/>
<input type="submit" value="Knock Knock" name="submit_button"></form>