otp: update docs on permissions, only require email driver if sendEmail is not false

This commit is contained in:
dswbx
2025-11-10 10:25:33 +01:00
parent c57f3e8070
commit b6717f0237
3 changed files with 48 additions and 3 deletions

View File

@@ -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