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.symfony-version
parent
54b5227a0d
commit
e424df18aa
@ -0,0 +1,12 @@
|
|||||||
|
section[role="den-login"] {
|
||||||
|
padding: 30px;
|
||||||
|
width: 300px;
|
||||||
|
color: var(--highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
section[role="den-login"] div[role="system-notice"] {
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 3px;
|
||||||
|
background: var(--highlight);
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
@ -1,10 +1,16 @@
|
|||||||
{% extends "base/frame.twig" %}
|
{% extends "base/frame.twig" %}
|
||||||
{% block stylesheets %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<section role="intro">
|
<section role="den-login">
|
||||||
This is the screendoor index
|
<h1>This is the Den</h1><br/>
|
||||||
|
{% if notice is defined %}
|
||||||
|
<div role="system-notice">
|
||||||
|
{{ notice }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{{ include("forms/login-form.twig") }}
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -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 %}
|
@ -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>
|
Loading…
Reference in New Issue