mirror of
https://codeberg.org/JasterV/spazio-solazzo.git
synced 2026-04-26 18:20:03 +00:00
remove unused test support function
This commit is contained in:
parent
cab1831fc8
commit
fa575ceb41
1 changed files with 0 additions and 22 deletions
|
|
@ -26,28 +26,6 @@ defmodule SpazioSolazzo.AuthHelpers do
|
|||
|> AshAuthentication.Phoenix.Plug.store_in_session(user)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Creates a user and logs them into the connection.
|
||||
|
||||
Useful for tests that need an authenticated connection.
|
||||
|
||||
## Parameters
|
||||
|
||||
- `conn` - The test connection
|
||||
- `email` - User's email address
|
||||
- `name` - Optional user's full name (defaults to "Test User")
|
||||
- `phone_number` - Optional phone number (defaults to nil)
|
||||
|
||||
## Examples
|
||||
|
||||
conn = register_and_log_in_user(conn, "test@example.com", "Test User", "+1234567890")
|
||||
conn = register_and_log_in_user(conn, "user@example.com")
|
||||
"""
|
||||
def register_and_log_in_user(conn, email, name \\ "Test User", phone_number \\ nil) do
|
||||
user = register_user(email, name, phone_number)
|
||||
log_in_user(conn, user)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Creates a user via magic link authentication without attaching to a connection.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue