Skip to content

Commit

Permalink
docs(guides:security): Incorrect method name in Hashing Docs (adonisj…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush Gupta committed May 25, 2021
1 parent 19b201c commit 2150532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/guides/security/hashing.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The `Hash.make` method accepts a string value to a hash.

```ts
import Hash from '@ioc:Adonis/Core/Hash'
const hashedPassword = await Hash.hash(user.password)
const hashedPassword = await Hash.make(user.password)
```

Most of the time, you will be hashing the user's password, so it is better to use a model hook to perform the hashing.
Expand Down

0 comments on commit 2150532

Please sign in to comment.