Linux 软件免费装
Banner图

Meser10 OTP

开发者 meser10
更新时间 2026年11月4日 18:09
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

otp woocommerce sms two-factor phone verification

下载

1.0.0

详情介绍:

A one-time code by SMS is the simplest way to know that a phone number is real and belongs to the person typing it. This plugin sends those codes through your Meser 10 account and checks them, in three places you switch on separately: Who it is for Israeli sites that already send SMS with Meser 10. Codes go out from the same Meser 10 account, SMS balance and approved sender name the site owner uses for SMS campaigns, so there is no separate SMS gateway (such as Twilio) to sign up for, fund or configure. Israeli mobile numbers are accepted the way people type them (05X, +972, 00972), anything that is not a valid Israeli mobile is rejected rather than guessed, and masked numbers display correctly inside Hebrew right-to-left text. Sites that also send abroad can widen the number check with the meser10_otp_normalize_phone filter. Built so codes cannot be abused Every code is a paid SMS, so the plugin is strict about who can ask for one: Other details For developers Use codes in your own forms: $sent = meser10_otp_send( $phone, 'my_form' ); // true or WP_Error $ok = meser10_otp_verify( $phone, $code, 'my_form' ); // true or WP_Error Filters: meser10_otp_normalize_phone (accept numbers outside Israel), meser10_otp_client_ip (real visitor IP behind a proxy or CDN), meser10_otp_before_send (return a WP_Error to refuse a send, e.g. after a failed CAPTCHA), meser10_otp_login_required, meser10_otp_checkout_required, meser10_otp_ajax_contexts. Actions: meser10_otp_sent, meser10_otp_verified. Before you start You need a Meser 10 account with an SMS balance and an approved sender. Every code sent uses one SMS from that balance. By default, numbers are accepted in Israeli mobile format (05X, +972 or 00972).

安装:

  1. Install and activate the plugin.
  2. Go to Settings > Meser10 OTP.
  3. Paste the API key from your Meser 10 account (User Settings screen), enter your approved sender, and save.
  4. Send yourself a test code from the same screen.
  5. Switch on registration, checkout or sign-in, and save.

屏幕截图:

  • Registration form with the code step.
  • WooCommerce checkout with the billing mobile confirmed.
  • The sign-in code screen.

升级注意事项:

1.0.0 First release.

常见问题:

Does it work with the WooCommerce Checkout block?

Not in this version. The code step is shown on the classic checkout, the [woocommerce_checkout] shortcode. Orders that need a code are refused when they come through the Store API (the Checkout block or direct API calls), so nobody can skip the step that way. The settings screen warns you if your checkout page uses the Checkout block.

What happens to a user who must use sign-in codes but has no number?

You choose. By default they sign in with the password until a number is added, and their profile screen asks them to add one (confirmed with a code). Or you can refuse their sign-in until an administrator adds a number. A user cannot switch codes off by clearing their own number.

What about XML-RPC, the REST API and AJAX logins?

For users who need a code, XML-RPC requests with the normal password are refused, and so are password logins made through AJAX or REST. Application passwords keep working: they are separate credentials the user created on purpose, and they never open a browser session.

How long does a code take to arrive?

Codes are sent through the Meser 10 API's single-message function, which sends at once, without a campaign, list or schedule.

Can I change the text of the SMS?

Yes. Use {code} for the code and {site} for the site name. If the text has no {code}, the code is added at the end.

更新日志:

1.0.0