WB OTP Login
OTP-based mobile login for WordPress using MessageCentral API without DLT registration.
by Chavinesh Mukund · github.com/chavi1502/wb-otp-login · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/chavi1502/wb-otp-login/archive/refs/heads/main.zipA lightweight, secure OTP-based mobile login system for WordPress using the MessageCentral API. Built for developers and site owners who want to offer passwordless authentication without dealing with complex DLT registration.
✨ Features
- 📱 Mobile Number Login – Users log in with their phone number + OTP
- 🔐 No Passwords Required – Completely passwordless authentication
- ⚡ MessageCentral Integration – Fast OTP delivery via SMS
- 🚫 No DLT Required – Skip the complicated DLT registration process
- 🎨 Customizable UI – Full color, logo, and styling control
- 🆕 Auto User Registration – New users are created automatically on first login
- 📝 Profile Completion Popup – Prompts new users to enter their name
- 🔄 Resend OTP – One-click OTP resend functionality
- 🎯 Custom Redirects – Set post-login destination URLs
- 📋 Shortcode Powered – Use
[wb_login]on any page - 🛡️ Secure AJAX Handlers – WordPress nonce verification on all requests
📋 Requirements
- WordPress 5.8 or higher
- PHP 7.4 or higher
- MessageCentral account (Customer ID, Email, API Key)
- SSL certificate (recommended for production)
🚀 Installation
Method 1: Upload via WordPress Admin
- Download the latest release ZIP from the Releases page
- Go to WordPress Admin → Plugins → Add New → Upload Plugin
- Choose
wb-otp-login.zipand click Install Now - Click Activate Plugin
Method 2: Manual Upload (FTP)
- Download and extract the ZIP file
- Upload the
wb-otp-loginfolder to/wp-content/plugins/ - Go to WordPress Admin → Plugins and activate WB OTP Login
⚙️ Configuration
1. Get MessageCentral Credentials
- Login to your MessageCentral CPaaS Dashboard
- Navigate to Account Settings → API Credentials
- Copy the following:
- Customer ID (e.g.,
C-XXXXXXXXXX) - API Key (Base64 encoded)
- Customer ID (e.g.,
2. Plugin Settings
- In WordPress Admin, go to OTP Login (left sidebar menu)
- Enter your MessageCentral credentials under 📱 MessageCentral API Credentials
- Customize appearance under 🎨 Appearance Settings
- Set redirect URLs under 🔗 Page Links & Redirects
- Click 💾 Save All Settings
Settings Reference
| Setting | Default | Description |
|---|---|---|
| Customer ID | empty | Your MessageCentral Customer ID |
| empty | Registered email address | |
| API Key | empty | Base64 encoded API key |
| Country Code | IN |
ISO country code (IN, US, etc.) |
| Dial Code | 91 |
Phone dial code without + |
| Redirect URL | /dashboard/ |
Where users go after login |
| Heading Text | WELCOME BACK |
Login card heading |
📝 Usage
Add Login Form to Any Page
Use the shortcode in any page, post, or widget: