mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-19 12:53:49 +12:00
chore: fix build/check
This commit is contained in:
parent
61fe8a243d
commit
99668f904b
9 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
defmodule AshHq.Accounts.User.Senders.SendPasswordResetEmail do
|
||||
@moduledoc """
|
||||
Sends a password reset email
|
||||
"""
|
||||
use AshAuthentication.Sender
|
||||
use AshHqWeb, :verified_routes
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
defmodule AshHqWeb.AuthOverrides do
|
||||
@moduledoc "UI overrides for authentication views"
|
||||
use AshAuthentication.Phoenix.Overrides
|
||||
alias AshAuthentication.Phoenix.Components
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue