Move auth logic to blueprint

This commit is contained in:
Peter Stockings
2025-07-23 21:46:13 +10:00
parent b0a172bee0
commit 19d855fb89
6 changed files with 94 additions and 88 deletions

View File

@@ -69,7 +69,7 @@
</div>
<a class="inline-flex items-center justify-center text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground rounded-full border border-gray-200 w-8 h-8 dark:border-gray-800 cursor-pointer"
data-id="40" type="button" id="radix-:r1u:" aria-haspopup="menu" aria-expanded="false"
data-state="closed" href="{{ url_for('logout') }}">
data-state="closed" href="{{ url_for('auth.logout') }}">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"

View File

@@ -47,7 +47,7 @@
<hr class="my-4" data-id="15">
<div class="text-center" data-id="16">
<p class="text-gray-500" data-id="17">Don't have an account? <a class="underline text-blue-500"
data-id="18" href="{{ url_for('signup') }}" rel="ugc">Sign up</a>
data-id="18" href="{{ url_for('auth.signup') }}" rel="ugc">Sign up</a>
</p>
</div>
</form>

View File

@@ -44,7 +44,7 @@
<hr class="my-4" data-id="15">
<div class="text-center" data-id="16">
<p class="text-gray-500" data-id="17">Already have an accont? <a class="underline text-blue-500"
data-id="18" href="{{ url_for('login') }}" rel="ugc">Login</a>
data-id="18" href="{{ url_for('auth.login') }}" rel="ugc">Login</a>
</p>
</div>
</form>