docs: remove 'resources' dir from guides and fix grammar (#617)

This commit is contained in:
George 2024-04-07 13:03:01 +01:00 committed by GitHub
parent 33148fb7a2
commit 02eabdd155
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ This authentication strategy provides registration and sign-in for users using a
identifier (eg `username`, `email` or `phone_number`) and a password. It will
define register and sign-in actions on your "user" resource. You are welcome to
define either or both of these actions yourself if you wish to customise them -
if you do so then the extension will do it's best to validate that all required
if you do so then the extension will do its best to validate that all required
configuration is present.
The `AshAuthentication.Strategy.Password` DSL allows you to override any of the default values.
@ -135,7 +135,7 @@ You can skip this step if you don't want to use tokens, in which case remove the
`tokens` DSL section in the user resource below.
```elixir
# lib/my_app/accounts/resources/token.ex
# lib/my_app/accounts/token.ex
defmodule MyApp.Accounts.Token do
use Ash.Resource,
@ -161,7 +161,7 @@ Lastly let's define our `User` resource, using password authentication and token
generation enabled.
```elixir
# lib/my_app/accounts/resources/user.ex
# lib/my_app/accounts/user.ex
defmodule MyApp.Accounts.User do
use Ash.Resource,
@ -317,7 +317,7 @@ can set your token signing secret using either a static string (please don't!),
a two-arity anonymous function, or a module which implements the
`AshAuthentication.Secret` behaviour.
At it's simplest you should so something like this:
At its simplest you should so something like this:
```elixir
# in lib/my_app/accounts/user.ex