mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
otp: update docs on permissions, only require email driver if sendEmail is not false
This commit is contained in:
@@ -263,10 +263,11 @@ export default {
|
||||
|
||||
### `emailOTP`
|
||||
|
||||
<Callout type="info">
|
||||
This plugin requires the `email` driver to be registered.
|
||||
<Callout type="warning">
|
||||
Make sure to setup proper permissions to restrict reading from the OTP entity. Also, this plugin requires the `email` driver to be registered.
|
||||
</Callout>
|
||||
|
||||
|
||||
A plugin that adds email OTP functionality to your app. It will add two endpoints to your app:
|
||||
- `POST /api/auth/otp/login` to login a user with an OTP code
|
||||
- `POST /api/auth/otp/register` to register a user with an OTP code
|
||||
|
||||
Reference in New Issue
Block a user