feat(auth): add email verification flow

This commit is contained in:
2026-09-01 08:47:09 +03:00
parent 2dc4dedb2b
commit 65bebd19c5
9 changed files with 226 additions and 17 deletions
+12
View File
@@ -0,0 +1,12 @@
{% extends 'base.html' %}
{% block title %}Verify email | Eternity Project{% endblock %}
{% block content %}
<section class="auth-layout">
<div class="auth-copy"><span class="signal-label">EMAIL VERIFICATION</span><h1>Confirm the<br>signal.</h1><p>{% if token_type == 'registration' %}Confirm {{ email }} to activate your account after administrator approval.{% else %}Confirm {{ email }} to replace the email address connected to your account.{% endif %}</p></div>
<form class="auth-form" method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<label>Email<input type="email" value="{{ email }}" readonly></label>
<button class="button" type="submit">Confirm email <span aria-hidden="true">→</span></button>
</form>
</section>
{% endblock %}