=== Adev OTP Login === Contributors: adsinooweb Tags: otp, sms, login, woocommerce, authentication Requires at least: 5.8 Tested up to: 7.1 Requires PHP: 8.0 Stable tag: 1.2.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Login and registration with one-time SMS codes. Supports Kavenegar, Melipayamak, SMS.ir, WooCommerce, and Polylang (Persian, English, Arabic). == Description == Adev OTP Login lets visitors sign in and register using a one-time password (OTP) sent by SMS. **Features** * SMS OTP login and registration * Forgot / reset password via OTP * Shortcodes and modal / tabbed forms * Optional replacement of the default `wp-login.php` screen * WooCommerce checkout mobile verification and forced login * Gateways: [Kavenegar](https://kavenegar.com/), [Melipayamak](https://www.melipayamak.com/), and [SMS.ir](https://sms.ir/) * Rate limiting, honeypot, and phone blacklist * Internationalized (English source strings); community translations via translate.wordpress.org * Polylang integration: locale sync and String Translations for button labels **Shortcodes** * `[adev_otp_login]` — login form * `[adev_otp_register]` — registration form * `[adev_otp_forgot]` — forgot password form * `[adev_otp_modal]` — button that opens the auth modal * `[adev_otp_button]` — modal opener with custom label * `[adev_otp_tabs]` — tabbed inline forms (no popup) **Polylang** 1. Add Persian (`fa`), English (`en`), and Arabic (`ar`) in Polylang. 2. Plugin UI strings follow the current language via WordPress locale / language packs. 3. Customizable button texts appear under **Languages → String translations** (group: *Adev OTP Login*). == External services == This plugin connects to third-party SMS gateway APIs chosen by the site administrator. These services are required to deliver one-time verification codes by SMS. No SMS is sent and no personal data is transmitted to a gateway until an administrator configures API credentials and a visitor (or admin test) requests an OTP. When an OTP is requested, the plugin sends the recipient mobile number, the generated OTP code (or template parameters containing it), and the administrator-configured API credentials / sender settings to the selected provider. Phone numbers may also be stored as WordPress user meta for account linking. OTP codes are kept temporarily in WordPress transients for verification and are not written to long-term send logs (logs store a masked phone and status only). = Kavenegar = * Used for: sending OTP SMS (verify/lookup or simple send). * Data sent: mobile number, OTP / template tokens, API key; only when an OTP send is triggered. * Service: [https://kavenegar.com/](https://kavenegar.com/) * Terms of service: [https://kavenegar.com/](https://kavenegar.com/) (account terms apply on signup / panel) * Privacy policy: [https://kavenegar.com/support/contact](https://kavenegar.com/support/contact) (provider contact / data inquiries) = Melipayamak = * Used for: sending OTP SMS (pattern / base service number or simple send). * Data sent: mobile number, OTP / pattern parameters, username/password or API token; only when an OTP send is triggered. * Service: [https://www.melipayamak.com/](https://www.melipayamak.com/) * Terms of service: [https://www.melipayamak.com/rules/](https://www.melipayamak.com/rules/) * Privacy policy: [https://www.melipayamak.com/rules/](https://www.melipayamak.com/rules/) (data handling is covered in the provider rules) = SMS.ir = * Used for: sending OTP SMS (verify template or bulk/simple send). * Data sent: mobile number, OTP / template parameters, API key; only when an OTP send is triggered. * Service: [https://sms.ir/](https://sms.ir/) * Terms of service: [https://sms.ir/terms-and-conditions/](https://sms.ir/terms-and-conditions/) * Privacy policy: [https://sms.ir/terms-and-conditions/](https://sms.ir/terms-and-conditions/) (privacy commitments are included in the provider terms) Site owners should review each provider’s policies and ensure their own privacy notice discloses SMS-based authentication and sharing of phone numbers with the chosen gateway. == Installation == 1. Upload the `adev-otp-login` folder to `/wp-content/plugins/`, or install the ZIP via **Plugins → Add New**. 2. Activate the plugin through the **Plugins** screen. 3. Go to **OTP Login → Settings**, choose a gateway, and enter API credentials. 4. Place a shortcode on a page, or enable WooCommerce / wp-login options as needed. == Frequently Asked Questions == = Does this plugin work without WooCommerce? = Yes. WooCommerce features are optional and load only when WooCommerce is active. = Which SMS providers are supported? = Kavenegar, Melipayamak, and SMS.ir (pattern / verify and simple send modes). = How do translations work with Polylang? = English is the source language. After the plugin is listed on WordPress.org, language packs are distributed via translate.wordpress.org. Polylang switches the locale per language; button labels from settings can also be translated in Polylang String Translations. = Are OTP codes stored? = OTP codes are stored temporarily (transients) with a short TTL for verification, then removed. Send logs mask phone numbers and do not store OTP codes. = What data is sent to SMS providers? = See the **External services** section. In short: the recipient phone number and OTP (plus your API credentials) are sent only when a code is requested. == Screenshots == 1. Admin settings — general and gateway 2. Frontend OTP login form 3. WooCommerce checkout verification == Changelog == = 1.2.1 = * WordPress.org review packaging: document external SMS services, register `[adev_otp_button]`, remove bundled directory assets / language binaries from the plugin package * Harden OTP attempt and daily SMS counters against concurrent races = 1.2.0 = * Added SMS.ir gateway (verify template + bulk/simple send) * Deep-merge gateway defaults so new providers appear on existing installs = 1.1.0 = * English source strings for WordPress.org i18n * Complete `fa_IR`, `en_US`, and `ar` language packs * Polylang locale sync and String Translations for button labels * `readme.txt`, license header, and packaging readiness = 1.0.8 = * WooCommerce checkout force login / register * Gateway and rate-limit improvements = 1.0.0 = * Initial release == Upgrade Notice == = 1.2.1 = Packaging and documentation updates for the WordPress.org directory. No change to existing shortcodes or gateway settings. = 1.1.0 = Source language is now English. Existing Persian button defaults are migrated automatically. Re-save Polylang string translations if you customize button labels.