Skip to content

Commit ac25af1

Browse files
DraftProductsthetutlage
authored andcommitted
docs: update codeblocks to use async with await is used
async forgeted on updatePasswordByToken() and forgotPassword()
1 parent 3705125 commit ac25af1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Takes a forgot password request from the user by passing their `uid`. Uid will b
200200
3. Emits the `forgot::password` event. You can listen for this event to send an email with the token to reset the password.
201201

202202
```js
203-
forgotPassword ({ request }) {
203+
async forgotPassword ({ request }) {
204204
await Persona.forgotPassword(request.input('uid'))
205205
}
206206
```
@@ -214,7 +214,7 @@ Updates the user password using a token. This method performs the following chec
214214
3. Updates the user's password.
215215

216216
```js
217-
updatePasswordByToken ({ request, params }) {
217+
async updatePasswordByToken ({ request, params }) {
218218
const token = params.token
219219
const payload = request.only(['password', 'password_confirmation'])
220220

0 commit comments

Comments
 (0)