chore: fix build/check

This commit is contained in:
Zach Daniel 2023-01-12 23:28:44 -05:00
parent 61fe8a243d
commit 99668f904b
9 changed files with 14 additions and 4 deletions

View file

@ -1,4 +1,7 @@
defmodule AshHq.Accounts.User.Senders.SendConfirmationEmail do
@moduledoc """
Sends a confirmation email for initial sign up or email change.
"""
use AshAuthentication.Sender
use AshHqWeb, :verified_routes

View file

@ -1,4 +1,7 @@
defmodule AshHq.Accounts.User.Senders.SendPasswordResetEmail do
@moduledoc """
Sends a password reset email
"""
use AshAuthentication.Sender
use AshHqWeb, :verified_routes

View file

@ -212,7 +212,7 @@ defmodule AshHq.Accounts.User do
changeset
response ->
_ ->
Ash.Changeset.add_error(changeset, "Could not determine what email to use")
end
end)

View file

@ -1,4 +1,5 @@
defmodule AshHq.Accounts.Secrets do
@moduledoc "Secrets adapter for AshHq authentication"
use AshAuthentication.Secret
@github_secret_keys ~w(client_id client_secret redirect_uri)a

View file

@ -120,7 +120,7 @@ defmodule AshHqWeb do
end
end
def static_paths() do
def static_paths do
~w(assets fonts images favicon.ico robots.txt)
end

View file

@ -1,4 +1,5 @@
defmodule AshHqWeb.AuthOverrides do
@moduledoc "UI overrides for authentication views"
use AshAuthentication.Phoenix.Overrides
alias AshAuthentication.Phoenix.Components

View file

@ -3,7 +3,8 @@ defmodule AshHqWeb.LiveUserAuth do
Helpers for authenticating users in liveviews
"""
use AshHqWeb, :component
import Phoenix.Component
use AshHqWeb, :verified_routes
def on_mount(:live_user_optional, _params, _session, socket) do
if socket.assigns[:current_user] do

View file

@ -1,4 +1,5 @@
defmodule AshHqWeb.Routes do
@moduledoc "Route helpers"
def url(path) do
Application.get_env(:ash_hq, :url) <> "/" <> String.trim_leading(path, "/")
end

View file

@ -62,7 +62,7 @@ defmodule AshHqWeb.ConnCase do
}
end
defp test_user() do
defp test_user do
user =
AshHq.Accounts.User.register_with_password!(
"test@example.com",