fixing auth login flow and making custom login flow

This commit is contained in:
2026-04-03 19:54:18 -04:00
parent 874fec835d
commit bd0f5d52c2
3 changed files with 9 additions and 11 deletions

View File

@@ -9,12 +9,10 @@ defmodule MixerWeb.AuthOverrides do
# For a complete reference, see https://hexdocs.pm/ash_authentication_phoenix/ui-overrides.html
# override AshAuthentication.Phoenix.Components.Banner do
# set :image_url, "https://media.giphy.com/media/g7GKcSzwQfugw/giphy.gif"
# set :text_class, "bg-red-500"
# end
# override AshAuthentication.Phoenix.Components.SignIn do
# set :show_banner, false
# end
override AshAuthentication.Phoenix.Components.Banner do
set :image_url, nil
set :dark_image_url, nil
set :text, "⬡ Mixer"
set :text_class, "text-3xl font-bold tracking-tight"
end
end

View File

@@ -5,7 +5,7 @@
<p class="text-base-content/60 text-lg mb-10">A social feed built with Ash &amp; Phoenix.</p>
<div class="flex flex-col sm:flex-row gap-3 justify-center">
<a href="/register" class="btn btn-primary btn-lg rounded-full px-8">Create account</a>
<a href="/auth/sign-in" class="btn btn-ghost btn-lg rounded-full px-8">Sign in</a>
<a href="/sign-in" class="btn btn-ghost btn-lg rounded-full px-8">Sign in</a>
</div>
<p class="mt-8 text-sm text-base-content/40">
Already have an account?