mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 12:52:55 +12:00
fix: setup options properly for ash 3.0 (#785)
This commit is contained in:
parent
2cf46afa81
commit
53789c17e4
1 changed files with 4 additions and 4 deletions
|
@ -34,8 +34,8 @@ defmodule AshAuthentication.Strategy.Password.Actions do
|
|||
strategy.resource
|
||||
|> Query.new()
|
||||
|> Query.set_context(context)
|
||||
|> Query.for_read(strategy.sign_in_action_name, params)
|
||||
|> Ash.read(options)
|
||||
|> Query.for_read(strategy.sign_in_action_name, params, options)
|
||||
|> Ash.read()
|
||||
|> case do
|
||||
{:ok, [user]} ->
|
||||
{:ok, user}
|
||||
|
@ -162,8 +162,8 @@ defmodule AshAuthentication.Strategy.Password.Actions do
|
|||
ash_authentication?: true
|
||||
}
|
||||
})
|
||||
|> Changeset.for_create(strategy.register_action_name, params)
|
||||
|> Ash.create(options)
|
||||
|> Changeset.for_create(strategy.register_action_name, params, options)
|
||||
|> Ash.create()
|
||||
end
|
||||
|
||||
def register(strategy, _params, _options) when is_struct(strategy, Password) do
|
||||
|
|
Loading…
Reference in a new issue