Back to Nocobase

Verification: SMS

docs/docs/en/auth-verification/verification/sms.md

2.1.101.7 KB
Original Source

Verification: SMS

Introduction

The SMS verification code is a built-in verification type used to generate a one-time dynamic password (OTP) and send it to the user via SMS.

Adding an SMS Verifier

Navigate to the verification management page.

Add - SMS OTP

Administrator Configuration

Currently, the supported SMS service providers are:

  • <a href="https://www.aliyun.com/product/sms" target="_blank">Aliyun SMS</a>
  • <a href="https://cloud.tencent.com/product/sms" target="_blank">Tencent Cloud SMS</a>

When configuring the SMS template in the service provider's admin panel, you need to reserve a parameter for the verification code.

  • Aliyun configuration example: Your verification code is: ${code}

  • Tencent Cloud configuration example: Your verification code is: {1}

Developers can also extend support for other SMS service providers in the form of plugins. See: Extending SMS Service Providers

User Binding

After adding the verifier, users can bind a phone number in their personal verification management.

Once the binding is successful, identity verification can be performed in any scenario that uses this verifier.

User Unbinding

Unbinding a phone number requires verification through an existing bound method.