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:
Egor Kislitsyn 2022-12-09 00:51:10 +04:00 committed by GitHub
parent 3ba1d81975
commit 395388f91e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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