kinda add registration
All checks were successful
build / build (pull_request) Successful in 4m25s

This commit is contained in:
2025-01-11 19:59:04 +01:00
parent 51c5e9ac57
commit 12b762480b
23 changed files with 1122 additions and 47 deletions

View File

@ -11,6 +11,18 @@
{% endblock %}
</head>
<body>
{% for flash in app.flashes('error') %}
<div class="alert alert-danger">
{{ flash }}
</div>
{% endfor %}
{% for flash in app.flashes('success') %}
<div class="alert alert-success">
{{ flash }}
</div>
{% endfor %}
{% block body %}{% endblock %}
</body>
</html>

View File

@ -0,0 +1,11 @@
<h1>Hi! Please confirm your email!</h1>
<p>
Please confirm your email address by clicking the following link: <br><br>
<a href="{{ signedUrl|raw }}">Confirm my Email</a>.
This link will expire in {{ expiresAtMessageKey|trans(expiresAtMessageData, 'VerifyEmailBundle') }}.
</p>
<p>
Cheers!
</p>

View File

@ -0,0 +1,23 @@
{% extends 'base.html.twig' %}
{% block title %}Register{% endblock %}
{% block body %}
{% for flash_error in app.flashes('verify_email_error') %}
<div class="alert alert-danger" role="alert">{{ flash_error }}</div>
{% endfor %}
<h1>Register</h1>
{{ form_errors(registrationForm) }}
{{ form_start(registrationForm) }}
{{ form_row(registrationForm.email) }}
{{ form_row(registrationForm.plainPassword, {
label: 'Password'
}) }}
{{ form_row(registrationForm.agreeTerms) }}
<button type="submit" class="btn">Register</button>
{{ form_end(registrationForm) }}
{% endblock %}

View File

@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}
Verifiziere deine E-Mail-Adresse
{% endblock %}
{% block body %}
Verfiziere deine E-Mail-Adresse, um deinen Account zu aktivieren.
Falls du keine E-Mail siehst, überprüfe deinen Spam-Ordner.
{% endblock %}

View File

@ -8,12 +8,6 @@
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class="mb-3">
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
</div>
{% endif %}
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="username">Email</label>
<input type="email" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="email" required autofocus>
@ -24,16 +18,6 @@
value="{{ csrf_token('authenticate') }}"
>
{#
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
See https://symfony.com/doc/current/security/remember_me.html
<div class="checkbox mb-3">
<input type="checkbox" name="_remember_me" id="_remember_me">
<label for="_remember_me">Remember me</label>
</div>
#}
<button class="btn btn-lg btn-primary" type="submit">
Sign in
</button>