Skip to content

Commit fc3c711

Browse files
committed
docs: update docs for the email password reset plugin
AdminForth/1899/reset-password-set-password-li
1 parent cbc1a36 commit fc3c711

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

adminforth/documentation/docs/tutorial/09-Plugins/07-email-password-reset.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ Installation:
1818
```bash
1919
pnpm add @adminforth/email-password-reset
2020
pnpm add @adminforth/email-adapter-aws-ses
21-
pnpm add @adminforth/key-value-adapter-ram
2221
```
2322

24-
>⚠️Note: we use key/value adapter to store used password reset token for validity period and we recomend to use stateful adapter like Redis in production, because stateless adapter (like key/value RAM) is cleared after server restart and password reset token could be re-used for the second time
2523

2624
Import plugin:
2725

@@ -45,7 +43,6 @@ Add plugin to user resource:
4543
```typescript ./resources/adminuser.ts
4644
import EmailResetPasswordPlugin from '@adminforth/email-password-reset';
4745
import EmailAdapterAwsSes from '@adminforth/email-adapter-aws-ses';
48-
import KeyValueAdapterRam from '@adminforth/key-value-adapter-ram';
4946

5047
...
5148
plugins: [
@@ -72,7 +69,6 @@ plugins: [
7269
accessKeyId: process.env.AWS_ACCESS_KEY_ID as string,
7370
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY as string,
7471
}),
75-
userResetTokensKeyValueAdapter: new KeyValueAdapterRam(),
7672
}),
7773
]
7874
```
@@ -124,7 +120,6 @@ plugins: [
124120
//baseUrl is optional, if not provided, will default to "https://api.mailgun.net" but if you are using Mailgun EU, you should use "https://api.eu.mailgun.net" instead
125121
baseUrl: process.env.MAILGUN_REGION_URL as string,
126122
}),
127-
userResetTokensKeyValueAdapter: new KeyValueAdapterRam(),
128123
}),
129124
]
130125
```

0 commit comments

Comments
 (0)