fix: logs user in after registration
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
{% block importmap %}{{ importmap('app') }}{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body class="bg-cyan-950 flex flex-col">
|
||||
<body class="bg-cyan-950 flex flex-col h-full">
|
||||
<h1 class="px-4 py-4 text-3xl font-extrabold text-orange-500">Torsearch</h1>
|
||||
<div class="flex flex-col justify-center items-center">
|
||||
{% block body %}{% endblock %}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="bg-gradient-to-r from-neutral-700 to-stone-600">
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Welcome!{% endblock %}</title>
|
||||
@@ -12,7 +12,7 @@
|
||||
{% block importmap %}{{ importmap('app') }}{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body class="flex flex-col">
|
||||
<body class="flex flex-col bg-stone-700">
|
||||
<div class="grid grid-cols-6">
|
||||
<div class="col-span-1 h-screen">
|
||||
<twig:NavBar />
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
{{ form_start(registrationForm) }}
|
||||
|
||||
{### Start Name ###}
|
||||
<label for="name" class="flex flex-col mb-2">
|
||||
{{ field_label(registrationForm.name) }}
|
||||
|
||||
@@ -24,23 +25,9 @@
|
||||
value="{{ field_value(registrationForm.name) }}"
|
||||
class="bg-gray-50 text-gray-50 p-1 bg-transparent border-b-2 border-orange-400" />
|
||||
</label>
|
||||
{# ################### #}
|
||||
|
||||
<label for="username" class="flex flex-col mb-2">
|
||||
{{ field_label(registrationForm.username) }}
|
||||
|
||||
{% if form_errors(registrationForm.username) %}
|
||||
<span class="w-full p-1 text-[.775rem] font-bold border-2 border-red-600 text-black bg-red-500/70 rounded-md">
|
||||
{{ form_errors(registrationForm.username) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<input type="text"
|
||||
name="{{ field_name(registrationForm.username) }}"
|
||||
id="{{ field_name(registrationForm.username) }}"
|
||||
value="{{ field_value(registrationForm.username) }}"
|
||||
class="bg-gray-50 text-gray-50 p-1 bg-transparent border-b-2 border-orange-400" />
|
||||
</label>
|
||||
|
||||
{### Start Email ###}
|
||||
<label for="email" class="flex flex-col mb-2">
|
||||
{{ field_label(registrationForm.email) }}
|
||||
|
||||
@@ -56,22 +43,25 @@
|
||||
value="{{ field_value(registrationForm.email) }}"
|
||||
class="bg-gray-50 text-gray-50 p-1 bg-transparent border-b-2 border-orange-400" />
|
||||
</label>
|
||||
{# ################### #}
|
||||
|
||||
<label for="password" class="flex flex-col mb-2">
|
||||
{{ field_label(registrationForm.plainPassword) }}
|
||||
{### Start Password ###}
|
||||
<label for="password" class="flex flex-col mb-2">
|
||||
{{ field_label(registrationForm.plainPassword) }}
|
||||
|
||||
{% if form_errors(registrationForm.plainPassword) %}
|
||||
<span class="w-full p-1 text-[.775rem] font-bold border-2 border-red-600 text-black bg-red-500/70 rounded-md">
|
||||
{{ form_errors(registrationForm.plainPassword) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if form_errors(registrationForm.plainPassword) %}
|
||||
<span class="w-full p-1 text-[.775rem] font-bold border-2 border-red-600 text-black bg-red-500/70 rounded-md">
|
||||
{{ form_errors(registrationForm.plainPassword) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<input type="password"
|
||||
name="{{ field_name(registrationForm.plainPassword) }}"
|
||||
id="{{ field_name(registrationForm.plainPassword) }}"
|
||||
value="{{ field_value(registrationForm.plainPassword) }}"
|
||||
class="bg-gray-50 text-gray-50 p-1 bg-transparent border-b-2 border-orange-400 mb-3" />
|
||||
</label>
|
||||
<input type="password"
|
||||
name="{{ field_name(registrationForm.plainPassword) }}"
|
||||
id="{{ field_name(registrationForm.plainPassword) }}"
|
||||
value="{{ field_value(registrationForm.plainPassword) }}"
|
||||
class="bg-gray-50 text-gray-50 p-1 bg-transparent border-b-2 border-orange-400 mb-3" />
|
||||
</label>
|
||||
{# ################### #}
|
||||
|
||||
<button type="submit" class="bg-green-600/40 px-1.5 py-1 w-full rounded-md text-gray-50 backdrop-filter backdrop-blur-sm border-2 border-green-500 hover:bg-green-700/40">Register</button>
|
||||
{{ form_end(registrationForm) }}
|
||||
|
||||
Reference in New Issue
Block a user