fix: bug in tokens required verifier.

This commit is contained in:
James Harton 2024-05-14 15:04:08 +12:00
parent 69dc1f1dbc
commit 8d584030f6
Signed by: james
GPG key ID: 90E82DAA13F624F4

View file

@ -80,7 +80,7 @@ defmodule AshAuthentication.Verifier do
)}
{[password | _], false}
when is_struct(password, Password) and is_map(password.sign_in_tokens_enabled?) ->
when is_struct(password, Password) and password.sign_in_tokens_enabled? ->
{:error,
DslError.exception(
path: [:authentication, :tokens, :enabled?],