diff --git a/2fa.php b/2fa.php index 4660ce0..1f5cf6d 100644 --- a/2fa.php +++ b/2fa.php @@ -6,7 +6,7 @@ Author: dxw Author URI: http://dxw.com Network: true -Version: 2.0.2 +Version: 2.0.3 */ $registrar = require __DIR__.'/src/load.php'; diff --git a/CHANGELOG.md b/CHANGELOG.md index aa093a8..240798a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v2.0.3] - 2024-12-19 + +### Changed + +- Allow disabling of Twilio SMS 2FA (via TWILIO_DISABLED constant) + ## [v2.0.2] - 2024-12-19 ### Changed diff --git a/README.md b/README.md index 371274d..0b9ffec 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,6 @@ WordPress plugin for 2 factor authentication (TOTP and SMS) At the moment this plugin must be installed on a multisite installation. -If you don't have a Twilio account, there's currently no way to hide SMS from the setup page. - To enable SMS authentication add these constants to your wp-config.php: define('TWILIO_ACCOUNT_SID', 'AC...'); @@ -16,6 +14,8 @@ To enable SMS authentication add these constants to your wp-config.php: You can find those [here](https://www.twilio.com/user/account/voice-sms-mms/getting-started). +If there is no Twilio account setup for SMS authentication or it needs to be disabled, add a constant `TWILIO_DISABLED` + ## Usage Super admins can decide which users must use 2FA. Users cannot opt to start using 2FA if it has not been enabled for their account. diff --git a/views/setup.php b/views/setup.php index dbc831f..bdc08d2 100644 --- a/views/setup.php +++ b/views/setup.php @@ -57,6 +57,7 @@ +
  • +