Skip to content

Commit

Permalink
fix: ensure we aren't calling Map.take on nil
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 22, 2023
1 parent 36d7d68 commit a6798d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ash_authentication/strategies/password/transformer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ defmodule AshAuthentication.Strategy.Password.Transformer do
|> then(fn dsl_state ->
strategy
|> Map.get(:resettable, %{})
|> Kernel.||(%{})
|> Map.take(~w[request_password_reset_action_name password_reset_action_name]a)
|> Map.values()
|> register_strategy_actions(dsl_state, strategy)
Expand Down

0 comments on commit a6798d5

Please sign in to comment.