mirror of
https://github.com/team-alembic/ash_authentication_phoenix.git
synced 2024-09-20 05:23:55 +12:00
bb241ad95c
This causes two small changes in behaviour: 1. If you are currently customising the default components you can remove the configuration from your `config.exs` and instead move it to your router. This allows you to have multiple sign-in routes with different "themes" should that be necessary. 2. If you are using the components directly you need to pass the `overrides` array into each component.
9 lines
259 B
Elixir
9 lines
259 B
Elixir
defmodule DevWeb.AuthOverrides do
|
|
@moduledoc false
|
|
use AshAuthentication.Phoenix.Overrides
|
|
alias AshAuthentication.Phoenix.Components
|
|
|
|
override Components.Banner do
|
|
set :image_url, "https://media.giphy.com/media/g7GKcSzwQfugw/giphy.gif"
|
|
end
|
|
end
|