finished auth overhaul and started tenants
This commit is contained in:
@@ -19,7 +19,20 @@
|
||||
<h1 class="text-3xl font-bold text-white mb-2">Create an Account</h1>
|
||||
<p class="text-muted text-sm">Choose a username to get started.</p>
|
||||
</div>
|
||||
|
||||
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<div class="space-y-3 mb-6">
|
||||
{% for category, message in messages %}
|
||||
{% set alert_class = 'bg-red-900 border-red-400 text-red-100' if category == 'error' else 'bg-green-900 border-green-400 text-green-100' %}
|
||||
<div class="p-3 border rounded-lg {{ alert_class }}" role="alert">
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<form action="/register" method="POST" class="space-y-6">
|
||||
<!-- Flask-WTF form fields will be injected here -->
|
||||
<div class="mb-4">
|
||||
@@ -46,7 +59,7 @@
|
||||
</form>
|
||||
|
||||
<p class="text-center mt-4 text-sm">
|
||||
Already have an account? <a href="/login" class="text-blue-400 hover:underline">Log In</a>
|
||||
Already have an account? <a href="/set_token" class="text-blue-400 hover:underline">Log In</a>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user