mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 21:03:23 +12:00
chore(docs): Fix code examples in the documentation (#74)
* Fix typo * Password strategy requires a name * Update documentation/getting_started/getting_started_01_basic_setup.md Co-authored-by: James Harton <59449+jimsynz@users.noreply.github.com> Co-authored-by: James Harton <59449+jimsynz@users.noreply.github.com>
This commit is contained in:
parent
3ba1d81975
commit
395388f91e
2 changed files with 5 additions and 2 deletions
|
@ -157,12 +157,15 @@ defmodule MyApp.Accounts.User do
|
|||
api MyApp.Accounts
|
||||
|
||||
strategies do
|
||||
password :identity_field :email
|
||||
password :password do
|
||||
identity_field :email
|
||||
end
|
||||
end
|
||||
|
||||
tokens do
|
||||
enabled? true
|
||||
token_resource MyApp.Accounts.Token
|
||||
do
|
||||
end
|
||||
|
||||
postgres do
|
||||
|
|
|
@ -30,7 +30,7 @@ defmodule AshAuthentication.Strategy.Password do
|
|||
api MyApp.Accounts
|
||||
|
||||
strategies do
|
||||
password do
|
||||
password :password do
|
||||
identity_field :email
|
||||
hashed_password_field :hashed_password
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue